AREA AND CIRCUMFERENCE OF CIRCLE
Code :
#include<stdio.h>
int main()
{
float area, pi = 3.14159, circum, radius = 0;
printf("Enter radius of the circle: ");
scanf("%f", &radius);
area = pi * radius * radius;
circum = 2 * pi * radius;
printf("\nArea = %.2f\n", area);
printf("Circumference = %.2f\n", circum);
return 0;
}
Come again Learn again !
< iCodeBuzz />
No comments:
Post a Comment