Write a program to find the area of a Circle in C Programming

Hello there, This is CoderPradip here, and i am here to share you the way to find the area of a circle.

So let’s check the code

#include <stdio.h>
#include <conio.h>
#define PI 3.141

int main(){
    float radius, area;
    printf("Enter radius of circle\n");
    scanf("%f", &radius);

    area = PI*radius*radius;
    printf("Area of circle : %0.4f\n", area);

    getch();
    return 0;
}

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.