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

How did New England's physical geography help the growth of industries?
How did New England's physical geography help the growth of industries?
Orchids are a type of flowering plant. How would biologists explain how a living orchid species lacking leaves evolved from an ancestral orchid species that had
What is 60 divided by 100 and why? ( I got 0.6 but I'm not sure ) plz hurry
2 friends want to equally share 4/3 feet of rope.What length of rope should ea friend get?
what is 20% of $45.00?
Predict what happens when zinc is added to water
At a store , 24 bottles of water and 6 bags of chips costs $23.40. Five bottles of water and two bags of chips cost $6.60. What is the cost of a single bottle o
Type of picture Paul Revere made of the Boston massacre?
Type of picture Paul Revere made of the Boston massacre?