圆的面积
This commit is contained in:
parent
88fc8776b5
commit
9cac8f9c5d
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue