摘要:
(C) #include<stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF){ int sum=0; for(int i=1;i<=n;i++) sum+=i; printf("%d\n\n",sum); } return 0; } (C+ 阅读全文
posted @ 2020-10-18 23:19
jzhr
阅读(78)
评论(0)
推荐(0)
摘要:
如下正确代码: (C) #include <stdio.h>int main(){ int a, b; while(scanf("%d %d", &a, &b) != EOF) printf("%d\n", a + b); return 0;} (C++) #include <iostream> u 阅读全文
posted @ 2020-10-18 19:16
jzhr
阅读(71)
评论(0)
推荐(0)

浙公网安备 33010602011771号