摘要:
/***求PI,用正多边形逼近法、数值概率算法**/#include<stdio.h>#include<math.h>double getPI(int n);int main(){int n = 1;double PI;printf("please input the accuracy:\n");scanf("%d",&n);PI = getPI(n);printf... 阅读全文
posted @ 2010-10-13 23:35 生无涯 阅读(182) 评论(0) 推荐(0)
浙公网安备 33010602011771号