C program to calculate area and perimeter of Rectangle.

#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 int len, bre, peri, area;
 printf("Enter length and breadth of the rectangle :");
 scanf("%d%d",&len,&bre);
 area=len*bre;
 peri=(2*len)+(2*bre);
 printf("Area = %d\tPerimeter=%d",area,peri);
 getch();
}
C program to calculate area and perimeter of Rectangle. C program to calculate area and perimeter of Rectangle. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.