Monday, August 22, 2016

C program to find the area of a circle.


//C program to find the area of a circle.
#include<stdio.h>
void main()
{
   float r;
    
   printf("Enter radius:");
   scanf("%f",&r);
    
   printf("Area of Circle is: %.2f", 3.14*r*r);
    
}


Output of the Program:

Enter radius:2
Area of Circle is: 12.56

No comments:

Post a Comment