Write a program to calculate the area of a circle, given the radius of the circle. Hint - use pi = acos(-1) as pi != 3.1416 input format input consists of a single integer r denoting the radius of the circle. Output format output the area of the circle rounded to 4 decimal places
Answers
Answered by
1
#include<stdio.h>
#include<math.h>
int main() {
float r,pi = 'put the pi value here';
scanf("%f",&r);
printf("%0.4f\n",pi * r * r)
return 0;
}
deepsowryap52ky1:
left pi value as i didnt understand what u were saying (what is 'a')
Similar questions
Social Sciences,
7 months ago
Hindi,
7 months ago
History,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago