Below is the source code for C Program to find area and circumference of circle which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
/* C Program to find area and circumference of circle */
#include<stdio.h>
int main()
{
float area, radius, circum;
printf("ENTER THE RADIUS OF THE CIRCLE :: ");
scanf("%f", &radius);
area = 3.142 * radius * radius;
circum = 2 * 3.142 * radius;
printf("\nTHE AREA OF THE CIRCLE IS :: %f", area);
printf("\n\nTHE CIRCUMFERENCE OF THE CIRCLE IS :: %f\n", circum);
return 0;
}
OUTPUT : :
ENTER THE RADIUS OF THE CIRCLE :: 5
THE AREA OF THE CIRCLE IS :: 78.550003
THE CIRCUMFERENCE OF THE CIRCLE IS :: 31.420000
Above is the source code for C Program to find area and circumference of circle which is successfully compiled and run on Windows System.The Output of the program is shown above .
Below is the source code for C Program to find area and circumference of circle which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
Above is the source code for C Program to find area and circumference of circle which is successfully compiled and run on Windows System.The Output of the program is shown above .
need an explanation for this answer? contact us directly to get an explanation for this answer