#include<stdio.h>
int main()
{
int r;
float A,C;
printf("enter radius");
sacnf("%d",&r);
A=22/7.0*r*r;
C=2*22/7.0*r;
printf("\n area=%f \n circumference=%f',A,C);
return 0;
}
int main()
{
int r;
float A,C;
printf("enter radius");
sacnf("%d",&r);
A=22/7.0*r*r;
C=2*22/7.0*r;
printf("\n area=%f \n circumference=%f',A,C);
return 0;
}
No comments:
Post a Comment