// Area and perimeter of rectangle
#include<stdio.h>
int main()
{
int l,b,A,P;
printf("enetr the value of l and b\n");
scanf("%d%d",&l,&b);
A=l*b;
P=2*(l+b);
printf("the area is %d\n",A);
printf("the perimeter is %d",P);
return 0;
}
Tags:
C courses
// Area and perimeter of rectangle
#include<stdio.h>
int main()
{
int l,b,A,P;
printf("enetr the value of l and b\n");
scanf("%d%d",&l,&b);
A=l*b;
P=2*(l+b);
printf("the area is %d\n",A);
printf("the perimeter is %d",P);
return 0;
}