Program to find perimeter and area of a rectangle

 Perimeter = 2*(length+breadth)
Area= length*breadth

#include<stdio.h>
#include<conio.h>
void main()
{
int l, b, ar, peri;
printf("Enter length and breadth of triangle:");
scanf("%d %d", &l, &b);
ar = l*b;
peri = 2*(l+b);
printf("\n area= %d \n peri= %d", ar, peri);
getch();
}

Post a Comment

0 Comments