#include
void main()
{
float r,area,cir;
clrscr();
printf("Enter The Redius Of Circle:-");
scanf("%f",&r);
area=3.14*r*r;
cir=2*3.14*r;
printf("\n The area is:-%.2f");
printf("\n The circumference is:-%.2f",cir);
getch();
}
OUTPUT
Enter The Redius Of Circle:1
The area is:49.92
The circumference is:6.28
No comments:
Post a Comment