C program that ask length and breath of a room. Find area and perimeter of a room.
Answer:
#include<stdio.h>
int main()
{
int l,b,a,p;
printf("Enter length and breadth of a room");
scanf("%d%d",&l,&b);
a=l*b;
p=2*(l+b);
printf("Area of a room is %d and perimeter is %d",a,p);
return 0;
}