Program to find perimeter of rectangle in C

 program to find perimeter of rectangle (P=2*(l+b))

Program- to -find- perimeter -of -rectangle- in- C


#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;

}

Previous Post Next Post

Contact Form