Computer Science, asked by vaishnavie1862, 8 hours ago

write a c program to find the cost of painting a rectangular wall whose dimensions are given on run timewrite a c program to find the cost of painting a rectangular wall whose dimensions are given on run time

Answers

Answered by shh4renya11
0

Answer:

Explanation:

/*

* C Program to calculate area of a rectangle

*/

#include <stdio.h>

#include <conio.h>

 

int main(){

   float length, width, area;

   printf("Enter length of Rectangle\n");

   scanf("%f", &length);

   printf("Enter width of Rectangle\n");

   scanf("%f", &width);

   /* Area of Rectangle = Length X Width */

   area = length * width;

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

     

   getch();

   return 0;

}

Similar questions