摘要:
#include#includeint main(){int m,i,k;for(m=101;m=k+1){printf("%d ",m );} 阅读全文
摘要:
公式:圆周率=1-1/3+1/5-1/7+......+1/(4n-3)-1/(4n-1)#include#includemain(){double a=0,b=1;int i;for(i=1;i<100000;i++){b=pow(-1,i+1)/(2*i-1);a+=b;}printf("%lf... 阅读全文
摘要:
#includemain(){int n=0;printf("输入任意个数的字符:\n");while(getchar()!='\n')n++;printf("%d",n);} 阅读全文