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

Rosaline is a foil to _____. Romeo Juliet the nurse Paris
One of the inconsistencies of those who believed in social darwinism was
Find the root(s) of f (x) = (x- 6)2(x + 2)2. options are: a.-6 with multiplicity 1 b.-6 with multiplicity 2 c.6 with multiplicity 1 d.6 with multiplicity 2 e.-2
What was the London blitz?
How did European countries react to the Hawley-Smoot Tariff
I need to find the product. And expand if it helps me. How do I do this
Controlling how questions are asked is governed under
Buddy and his friend give fruitcakes to everyone except __________. A. people who visit them only once B. a bus driver C. the relatives they live with D. Presi
Jill Ley took out a loan for 60,000 to pay for her childs education. The must be repaid at the end of eight years in one payment with interest of 6%. The total
On what day of the year is mother's day always celebrated