Area of circle:-
In this c program we calculate area of circle. Here we take radius of circle from user and then calculate area of a circle. Here we take two float type of variable radius and area.
/*
Program : Area Of Circle
Filename : circleArea.c
IDE Used To Developed : CodeBlocks
Developed By : Pavito Golui
*/
#include<stdio.h>
int main()
{
float radius,area;
printf("Enter the radius of circle :");
scanf("%f",&radius);
area=3.14*radius*radius;
printf("Area of circle is :%f",area);
return 0;
}
Program : Area Of Circle
Filename : circleArea.c
IDE Used To Developed : CodeBlocks
Developed By : Pavito Golui
*/
#include<stdio.h>
int main()
{
float radius,area;
printf("Enter the radius of circle :");
scanf("%f",&radius);
area=3.14*radius*radius;
printf("Area of circle is :%f",area);
return 0;
}
Output :
Enter the radius of circle : 4
Area of circle is : 50.240002
0 comments:
Welcome to you in All Coding Help