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

8–2(x + 10) = 4.-6 What is the value of x?
I need answer to number 4 please ASAP
Use the graph to find the slope.
Why was the city of Djenné's location a benefit? 1. The city was located directly downstream from Timbuktu 2.The city was further from the desert 3.The weather
Which questions about risk should someone ask before making a big purchase? Check all that apply. What problems are most likely to happern? OWhat can be done to
According to O*NET, what is the projected growth for this career between 2019–2029? faster than avera slower than average average little or no change
Yall can you please help me with this Define Biology
the age of absolutism was when ​
The chart shows a range of credit scores. A bar chart titled Sample Credit Score Range has Rating on the x-axis, and credit score on the y-axis, from 0 to 800 i
please help i need the answer asap