#include<stdio.h> #include<conio.h> void main() { clrscr(); int len, bre, peri, area; printf("Enter length and breadth of the rectangle :"); scanf("%d%d",&len,&bre); area=len*bre; peri=(2*len)+(2*bre); printf("Area = %d\tPerimeter=%d",area,peri); getch(); }
No comments: