外媒:內塔尼亞胡親密助手被拘 涉嫌洩露機密文件
2025-01-18 15:08
1.1��1Դ��
1��1Դ��
#include <stdio.h>
void main() { int i,比源码微信商城h5网页源码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
}
2025-01-18 15:50
2025-01-18 15:39
2025-01-18 15:01
2025-01-18 14:43
2025-01-18 14:42
2025-01-18 14:15
2025-01-18 14:07
2025-01-18 14:06