Ads 468x60px

COOL TIPS AND TRICKS

COOL TIPS AND TRICKS

3.Rectangle

#include<stdio.h>
#include<conio.h>
void main()
{
       float l,b,area,p;
       clrscr();
       printf("\nEnter The Length:");
       scanf("%f",&l);
       printf("\nEnter The Breadth:");
       scanf("%f",&b);
       area=l*b;
       p=(l+b)*2;

       printf("\nArea:%f",area);
       printf("\nperimeter:%f",p);
       getch();

}



No comments:

Post a Comment