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

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

Respuesta :

Talanat
Talanat Talanat
  • 19-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;

}

Explanation:

Answer Link

Otras preguntas

If it costs$165 for a 2 month membership at the gym and$300 for a month membership, write an equation that represents the relationship between months and the to
Solve the system of linear equations. 2x + 5y = 12 4x - y = 2 ​
Is y=5x^2 proportional
Why is it so important to use more than just fossil fuels for our energy sources?​
Please help! Now it's time to reach out to your peers and share what's working for you and what is not. You will get an opportunity to help others and to get ad
This is the graph of f(x). What is the value of f(3)? A. 8 B. 6 C. 3 D:5
Solve for x -2(x+6) =-36
Please help! This is a multiple choice AP literature question. Currently failing and need all the help I can get.
Why don't protins stick together
¿Qué comió Enrique cuando iba de camino al muladar?