estimated 1001-1005

1001 (simple question)

  Input a plurality of sets of data, each set of data as an integer a, b; required output data a + b;

1 int main() {
2     int a, b;
3     while (cin >> a >> b) {
4         cout << a + b << endl;
5     }
6     system("pause");
7     return 0;
8 }
1001 and find two numbers

 

Guess you like

Origin www.cnblogs.com/yidiandianwy/p/11564846.html