Description
Calculate a+b
Input
Two integer a,b (0<=a,b<=10)
Output
Output a+b
Sample Input
1 2
Sample Output
3
我没有什么可以说的了,ACMer的最基础水题,就如同数学中的1+1等于?一样。
怒贴代码:
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{
printf("%d\n",a+b);
}
return 0;
}