//Area & perimeter of Rectangle
#include<stdio.h>
#include<conio.h>
void main()
{
float length,breadth,aor,por;
clrscr();
printf("\nEnter the Length & Breadth of Rectangle");
scanf("%f%f",&length,&breadth);
aor=length*breadth;
por=2*(length+breadth);
printf("\nThe area of Rectangle=%f",aor);
printf("\nThe perimeter of Rectangle=%f",por);
getch();
}
Hope you liked my posts, give comments if you have any doubts.. :)#include<stdio.h>
#include<conio.h>
void main()
{
float length,breadth,aor,por;
clrscr();
printf("\nEnter the Length & Breadth of Rectangle");
scanf("%f%f",&length,&breadth);
aor=length*breadth;
por=2*(length+breadth);
printf("\nThe area of Rectangle=%f",aor);
printf("\nThe perimeter of Rectangle=%f",por);
getch();
}
0 comments:
Post a Comment