February 4, 2011

C Program for Area & perimeter of Rectangle


//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.. :)

Related Posts :



Categories: ,

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Related Posts with Thumbnails