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

Describe the structure of atoms,including the masses, electrical charges, and locations of protons, neutrons and electrons.
Find the square root of 784 using prime factorization.
In your OWN WORDS define Estates General.
A fruit dessert contains rasberries and strawberries in the ratio 1:2. There are 400 g of strawberries in the dessert. a) How many grams of rasberries are there
If m is the midpoint of ab find the coordinates of a if b(4,6) and m(1,2) A is pls help I need to know pls
You are 20 years old and have completed your BBA and want to pursue further education but you don’t want to take money from your father. Your plan is to start w
does anyone want a virtual hug?
Is there a disorder where if something is out of sight it’s literally out of mind? If so what is the name of this disorder so I can do further research on it.
which statement best describes what happens when you hold a cold drink in your hand?
22 must lie between the whole numbers and