摘要:
(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+ 阅读全文
摘要:
如下正确代码: (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 阅读全文