C Code 2 _ To find the area of circle


C Code 2  _ To find the area of circle

Program:

#include<stdio.h>
#define PI 3.14
int main()
{
    float area;
    float r;
    printf("Enter the radius : ");
    scanf("%f",&r);
    area=PI*r*r;
    printf("The Area of circle is %f ",area);
    getch();
    return 0;
}



Output:


Thank you ...

Popular Posts