小石的图形

思路:

运用初中知识

题解:

 

#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
double PI = acos(-1.0);
int main()
{
int a;
while (cin >> a)
{
double s;

 

s = a * a / (2 * PI) ;

 

printf ("%.3lf\n", s);

 

}

 

return 0;
}

 

总结:

注意  π =  acos(-1.0) 

 

posted @ 2019-07-13 12:55  question-maker  阅读(104)  评论(0编辑  收藏  举报