标签:return namespace mes pre stream include iostream clu cout
#include<iostream>
using namespace std;
int main() {
int a, b, flag = 0;
while (cin >> a >> b) {
if (flag == 1 && b !=0) cout << " ";
if (b != 0) {
cout << a * b << " " << b - 1;
flag = 1;
}
}
if (flag == 0) cout << "0 0";
return 0;
}
标签:return namespace mes pre stream include iostream clu cout
原文地址:https://www.cnblogs.com/Yaxadu/p/10347258.html