Program to find Area and perimeter of rectangle in C

 // Area and perimeter of rectangle

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


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

}

Previous Post Next Post

Contact Form