C Program to Find the Area of Circle

Write C Program to Find the Area of the Circle

//Write a C program to Find the area of circle

#include <stdio.h>
#define PI 3.14

int main()
{
    float radius, area;

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

    area = PI * radius * radius;   //Formula to find the area of circle

    printf("Area of circle is :--> %0.2f\n", area);

    return 0;
}

Output:

Enter radius of circle :--> 23

Area of circle is :--> 1661.06

≪ Previous | Next ≫