arcgis javascript 源码
2024-11-30 06:57
1.jcԴ?源码模板匹配法源码?
jcԴ??
#include <stdio.h>
void main() { int i,jc,j,n; double sum=0.0;
n=; jc=1;
while (1) { scanf("%d",&n); if (n>0&&n<=5) break; else printf("请重新输入小于5的数:"); }
for(i=1;i<=n;i++) {
jc=1; for(j=1;j<=i;j++) jc=jc*j; //这行可以直接写成:jc*=i;
sum=sum+1.0/jc;
}
printf("%lf\n",sum); //用%lf
}
2024-11-30 06:40
2024-11-30 06:18
2024-11-30 05:52
2024-11-30 05:18
2024-11-30 05:17
2024-11-30 05:14
2024-11-30 04:26
2024-11-30 04:23