Introduction to C language
Program to find the area and perimeter of a rectangle




main() 
{
float l,b,a,p; clrscr(); printf("\nEnter length and breadth"); scanf("%f%f",&l,&b); a=l*b; p=2*(l+b); printf("\nArea of a rectangle : %0.2f",a); printf("\nPerimeter of a rectangle : %0.2f",p); getch();
}



 
-----------------------------------------------------------------------------------------
please mail comments to vgdarur@gmail.com
 

 

www.iforerunner.com