Find the area of a circle using c programming -
We can easily find the area of a circle in c programming using simple methods such as printf and scanf. the area of a circle is = PI* Radius* Radius.
Area of circle |
CODE:-
#include<stdio.h>
int main()
{}
int main()
{
float r,pi=3.14,area;
printf("Enter the value of radius :");
scanf("%f",&r);
area= pi*r*r;
printf("The value of area is %f ",area);
return 0;
OUTPUT:-
ENTER THE VALUE OF RADIUS:
5
THE VALUE OF AREA IS 78.50
Comments
Post a Comment