program to calculate area of circle
Answers
Answered by
1
Answer:
Program :
#include<stdio.h>
int main() {
float radius, area;
printf("\nEnter the radius of Circle : ");
scanf("%d", &radius);
area = 3.14 * radius * radius;
printf("\nArea of Circle : %f", area);
return (0);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
int main() {
float radius, area;
printf("\nEnter the radius of Circle : ");
scanf("%d", &radius);
area = 3.14 * radius * radius;
printf("\nArea of Circle : %f", area);
return (0);
}
Output :
Enter the radius of Circle : 2.0
Area of Circle : 6.14
1
2
Enter the radius of Circle : 2.0
Area of Circle : 6.14
Similar questions
Math,
3 months ago
Geography,
3 months ago
Computer Science,
3 months ago
Computer Science,
7 months ago
Math,
7 months ago
English,
1 year ago