使用六分之派的平方的方法,他的要求是小数要六位,值越靠近派越好
#include "stdio.h" #include "math.h" void main() { double PI=3.141593; double p = pow(PI/6,2); printf("p=%lf",p); }