ENTER THE RADIUS OF THE CIRCLE TO FIND OUT THE AREA AND CIRCUMFERENCE




#include<stdio.h>
int main()
{
    float radius = 0, area = 0, circumference = 0;

    printf(" #include<stdio.h>
int main()
{
    float radius = 0, area = 0, circumference = 0;

    printf(" Enter the radius of the circle : ");
    scanf("%f",&radius);

    area = 3.14*radius*radius;
    circumference = 2*3.14*radius;

    printf(" The area of the circle is %f",area);
    printf(" \n The circumference of the circle is :%f",circumference);

    return 0;
}


OUTPUT

Enter the radius of the circle : 12

Enter the radius of the circle : 452.160004 

The circumference of the circle is :       75.360001


Post a Comment

0 Comments