C Program to find AREA & PERIMETER OF A RECTANGLE

Program By :- Jayant Purohit

 /*Program to get Perimeter and Area of Rectangle*/
#include<conio.h>
#include<stdio.h>
void main()
{
float len,wid,area,perimeter;
clrscr();
printf("\nPlease Enter the Length of Rectangle:->");
scanf("%f",&len);
printf("\nPlease Enter the Width of Rectangle:->");
scanf("%f",&wid);
area=len*wid;
perimeter=2*(len+wid);
printf("\nThe area of the Rectangle is:->%f",area);
printf("\nThe Perimeter of the Rectangle is:->%f",perimeter);
getch();
}

No comments:

Post a Comment

Please write your Views about this Post here:->;

Pageviews last month