Finding Area Of Circle In C Programming

Introduction

  • In this blog, I am going to tell you about finding an area of a circle in C programming.

Software Requirements

  • Turbo C++ or C.

Programming

#include <stdio.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);  
    return 0;  
}

Output

Output

Conclusion

  • Thus, the program can be executed and printed successfully.