Click here to Upload your own logic for this program.

To find area of the circle


Program:


#include<stdio.h> main() { float a,r; printf("Enter the radius to find the area: "); scanf("%f",&r); a=3.14*r*r; printf("%f",a); }
Output:
		

Enter the radius to find the area: 5 78.500000


Program:


#include #include # define pi 3.14 main() { float r; printf("Enter The radius of Circle :"); scanf("%f",&r); printf("Area of the circle : %f ",pi*r*r); }
Output:
		

Enter The radius of Circle : 2 Area of the circle : 12.56