摘要:
#include<stdio.h>void main(){ int i,j; for(i=1;i<=9;i++) { for(j=1;j<=i;j++) printf("%dx%d=%-4d",i,j,i*j); printf("\n"); }} 阅读全文
posted @ 2019-12-21 18:35
张德明
阅读(2173)
评论(0)
推荐(0)
摘要:
#include<stdio.h>void main(){ int n; for(n=100;n<=300;n++) { if(n%25!=0) continue; printf("%5d",n); }} 阅读全文
posted @ 2019-12-21 15:24
张德明
阅读(830)
评论(0)
推荐(0)
摘要:
#include<stdio.h>#include<math.h>void main(){ int n; float j=1.0,sum=1.0; for(n=1;;n++) {j=j*n;sum+=1/j;if(fabs(1/j)<1e-6)break;}printf("e=%f\n",sum); 阅读全文
posted @ 2019-12-21 15:18
张德明
阅读(3850)
评论(0)
推荐(0)
浙公网安备 33010602011771号