Tuesday, 17 February 2015

Find the Area Of Circle

#include<stdio.h>
 
int main() {
   float radius, area;
 
   printf("\nEnter the radius of Circle : ");
   scanf("%d", &radius);
 
   area = 3.14 * radius * radius;\\ Formula of Area of Circle: Π * r * r
   printf("\nArea of Circle : %f", area);
 
   return (0);
}
 
 
Output :
Enter the radius of Circle : 2.0
Area of Circle : 6.14

3 comments: