C Program to Calculate Area of Circle

C Programming Language / Fundamentals of C Language

2151

Program:

#include"stdio.h"
int main() {
   float radius, area;
 
   printf("\nEnter the radius of Circle : \n");
   scanf("%f", &radius);
 
   area = 3.14 * radius * radius;
   printf("\nArea of Circle : %f \n", area);
 
   return (0);
}

Output:

Enter the radius of Circle :
6

Area of Circle : 113.040001
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.