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