megtamang05
megtamang05 megtamang05
  • 11-07-2022
  • Computers and Technology
contestada

write a c program to find area of rectangle using user defined function.​

Respuesta :

biffyboffboof
biffyboffboof biffyboffboof
  • 11-07-2022

Answer:

// C Program to Find Area of Rectangle

#include <stdio.h>

int main() {

   float length, width, area;

   printf("Enter the length & width of the rectangle::\n");

   scanf("%f", &length);

   scanf("%f", &width);

   // It will calculate area of rectangle

   area = length * width;

   // It will print the final output

   printf("\nArea of the rectangle is: %f units\n", area);

   return 0;

}

Hope This Helps!!!

Answer Link

Otras preguntas

what is a visual text
What is 2a squared time 3a to the power of 4
1/4 (3x - 16) + 1/4x = 5 and 1/3 PLZ!
A wheel has a radius of .30m. It rotates 185 times before it stops. How far did the vehicle travel?
HEEELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ME WITH THIS QUESTION!!! Translate the sentence into an equation.   Seven times the differe
A 1.8-kg object moves in the x direction according to the following function: x(t) = 2t2 + 3t − 5 (SI units). What is the force on the object after 2.7 s?
A fire hose 5 centimeters in diameter is used to fill a 225-liter bucket. If it takes 15 seconds to fill the bucket, what is the speed at ...
How do you factor 16-2m^2?
what is describes the steps you use during an experiment called??
A go-Kart's top speed is 607,200 feet per hour. What is the speed in miles per hour?