Computer Science, asked by Enkhzul, 5 hours ago

Write a program that will take as input the length and width of a rectangular garden and will calculate and output the surface area.

Answers

Answered by hiteshgowdagrade1
0

Answer:

How.to complect text file

Answered by shilpa85475
0

We know the area of the rectangle is Length * breadth, so here we will be taking this two dimensions from the user and then calculating the area of it.

Explanation:

 

#include <stdio.h>

#include <conio.h>

 

int main()

{

   float length, width, area;

   printf("Enter length \n");

   scanf("%f", &length);

   printf("Enter width \n");

   scanf("%f", &width);

   

   area = length * width;

   printf("Area of Rectangle : %0.4f\n", area);

     

   getch();

   return 0;

}

Similar questions