//program to find area of circle
#include<stdio.h>
#include<conio.h>
main()
{
int r,a,l,b;
printf("Enter the leanth of rectangle :");
scanf("%d",&l);
printf("Enter the breadth of rectangle:");
scanf("%d",&b);
a=l*b;
r=2*(l+b);
printf("\n\n\n\nThe area of rectangle is:%d\n",a);
printf("the perimeter of circle:%d",r);
fflush(stdin);
getchar();
}
#include<stdio.h>
#include<conio.h>
main()
{
int r,a,l,b;
printf("Enter the leanth of rectangle :");
scanf("%d",&l);
printf("Enter the breadth of rectangle:");
scanf("%d",&b);
a=l*b;
r=2*(l+b);
printf("\n\n\n\nThe area of rectangle is:%d\n",a);
printf("the perimeter of circle:%d",r);
fflush(stdin);
getchar();
}
0 comments:
Post a Comment