Program Description: C program to find area and circumference of a circle
#include int main() { float const pi = 3.14; int radius; float area; printf("Enter the radius of the circle:"); scanf("%d",&radius); area=pi*radius*radius; printf("\nThe area of the circle is %f ",area); return 0; }
OUTPUT
Enter the radius of the circle:5
The area of the circle is 78.500000
circumference of the circle is =31.400002
Please Login to Post the answer