1#include 2#include 3#include 4void main() 5{ 6 clrscr(); 7 int f=1; 8 float pi=0,t=1,v=1; 9 while (fabs(t)>1e-6)10 {11 pi=pi+t;12 v+=2; /**//*准备下一个累加的数据*/13 f=-f;14 t=f/v;15 }16 pi*=4;... Read More
#include #include #include void main(){ clrscr(); unsigned i,j,flag,count; /**//**//**//*用flag作标志*/ count=0; /**//**//**//*计数器清0*/ for(i=3;i#include#includevoid main(){ int i,n; for(i=... Read More