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

Find two ways to determine the number of dimes in $8.70
What were the origins of islam and what are its main beliefs ?
4) Use the rules of exponents to evaluate or simplify. Write without negative exponents. (bm)^-3 = ____
How do you compute the intercepts of a quadratic function?
Complete the following item based on the given information. The volume of a box(V) varies directly with its length(l). If one of the boxes has a volume of 325 c
four times the sum of a number and two increased by three is at least twenty seven
Find the standard equation of the circle that satisfies the conditions. Center (-1,-3), passing through the point (3,0)
What TWO things affect the gravitational force acting on an object?
Complete the following item based on the given information. The volume of a box(V) varies directly with its length(l). If one of the boxes has a volume of 325 c
A system of linear equations in two variables can have _____ solutions