圆的面积

This commit is contained in:
flykhan 2023-03-23 23:09:30 +08:00
parent 88fc8776b5
commit 9cac8f9c5d
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#include <cstdio>
using namespace std;
int main()
{
double pi = 3.14159, r;
scanf("%lf", &r);
printf("A=%.4f", pi * r * r);
return 0;
}