You are on page 1of 1

#include <stdio.

h>
#include<math.h>
int main()
{
int a,b,s,c,d;

printf("enter values for length and breadth");


scanf("%d%d",&a,&b);
printf("enter value for side of square");
scanf("%d",&s);
c=a*b;
d=s*s;
printf("area of rectangle = %d",c);
printf("area of square = %d",d);

return 0;
}

You might also like