1199:A+B Problem
Description
A+B Problem水题。
Input
连续输入两个整数a,b,当a=0且b=0时结束输入。
Output
输出a+b的值,并换行。
Sample Input
1 2
0 0
Sample Output
3
Source
#include<iostream>
using namespace std;
int main()
{
while(1)
{
int a,b;
cin>>a>>b;
if(a==0&&b==0)
break;
cout<<a+b<<endl;
}
return 0;
}