多组数据a+b III cpp
#include<iostream> using namespace std; int main() { int a=1, b=1; cin >> a >> b; while (a !=0 || b !=0) { cout << a + b << endl; cin >> a >> b; } return 0; }
#include<iostream> using namespace std; int main() { int a=1, b=1; cin >> a >> b; while (a !=0 || b !=0) { cout << a + b << endl; cin >> a >> b; } return 0; }
相关推荐