C program to find an area of circle.

 

01  #include<stdio.h>
02
03 int main()
04 {
05 int radius;
06 float area;
07
08 printf("Enter Radius of the Circle : ");
09 scanf("%d",&radius);
10
11 area=3.14*radius*radius;
12
13 printf("Area of the Circle : %.2f",area);
14 return 0;
15 }
 
 OUTPUT :

Enter Radius of the Circle : 5
Area of the Circle : 78.50

Related Post

Leave a Reply

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