A+B 1

数据包含多组输入,每行输入两个数字A,B

   每一行数据输出 A + B 

   

1 1
2 3

2
5

#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) { cout<<a+b<<endl; } return 0; }

 

 
posted @ 2020-01-29 11:31  heroin1  阅读(130)  评论(0)    收藏  举报