Pari is an Architect who is currently doing his design work for his new project in one of the congested location of Paris.For making his work simpler he is looking for the automated tool which check whether the area is greater or perimeter is greater or both are equal if the Length (L) and Breadth (B) of a rectangle is provided.
#include <stdio.h>
int main()
{int l,b,area,peri;
scanf("%d\n%d",&l,&b);
area=l*b;
peri=2*(l+b);
if(area>peri)
printf("Area\n%d",area);
else if(area<peri)
printf("Peri\n%d",peri);
else
printf("Eq\n%d",area);
return 0;}
Comments
Post a Comment