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
  1. #include < stdio.h >   
  2. #include < conio.h > #define PI 3.141  
  3. int main()   
  4. {  
  5.     float radius, area;  
  6.     printf("Enter radius of circle\n");  
  7.     scanf("%f", & radius);  
  8.     area = PI * radius * radius;  
  9.     printf("Area of circle : %0.4f\n", area);  
  10.     getch();  
  11.     return 0;  
  12. }   
Explanation
  • Through programming, finding an area of a circle is clearly understood.

    programming 
Output

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

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now