Write a C-Program to accept the radius of the circle and find the area
Answers
Answered by
1
Answer:
- int main() { int rad;
- float PI = 3.14, area, ci; printf("\nEnter radius of circle: ");
- scanf("%d", &rad); area = PI * rad * rad;
- printf("\nArea of circle : %f ", area); ci = 2 * PI * rad;
- printf("\nCircumference : %f ", ci); return (0);
Explanation:
Answered by
1
Answer:
int main() { int rad;
float PI = 3.14, area, ci; printf("\nEnter radius of circle: ");
scanf("%d", &rad); area = PI * rad * rad;
printf("\nArea of circle : %f ", area); ci = 2 * PI * rad;
printf("\nCircumference : %f ", ci); return (0);
Similar questions
Hindi,
3 months ago
Social Sciences,
3 months ago
Math,
6 months ago
English,
11 months ago
Math,
11 months ago