Menu

Add Topic

C Programming

waiting answer July 12, 2021

Area of a Circle in C Program

Answers
January 20, 2021

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     

0 0

Please Login to Post the answer

Leave an Answer