摘要:
#include<stdio.h>int sum(int i){int k=0;while(i){k+=i;i--;}return k;}int main(){int a;while(1 == scanf("%d",&a))printf("%d\n\n",sum(a));return 0;} 阅读全文
摘要:
#include<stdio.h>int main(){int a,b;while(2 == scanf("%d%d",&a,&b))//学到了这个~printf("%d\n",a+b);return 0;} 阅读全文