h5驾校报名源码_h5驾校报名源码是什么
2024-11-14 23:47
1.1��1Դ��
1��1Դ��
#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-14 23:19
2024-11-14 23:07
2024-11-14 22:56
2024-11-14 22:44
2024-11-14 22:41
2024-11-14 22:21
2024-11-14 22:18
2024-11-14 22:09