Saturday, March 6, 2021

C program to calculate the area of four walls.

 

1.     Write a C program to calculate the area of four walls.

 

#include<stdio.h>

#include<conio.h>

int main()

{

int l,b,h,a;

printf("Enter length: ");

scanf("%d", &l);

printf("Enter breadth: ");

scanf("%d", &b);

printf("Enter height: ");

scanf("%d", &h);

a=2*h*(l+b);

printf("Area of four walls= %d", a);

return 0;

}

1 comment:

  1. Good πŸ‘for students πŸ‘or user thanks alot thank you 😊 RAM RAM ZEEEEEE πŸ™πŸΌπŸ™πŸΌπŸ™πŸΌπŸ™πŸΌ

    ReplyDelete