//我们将所有输出操作放在一条很长的语句中。
//重写程序,将每个运算对象的打印操作放在一条独立的语句中
#include <iostream>
using namespace std;
int main() {
int a = 100,b = 25;
cout << a;
cout << " * ";
cout << b;
cout <<" = ";
cout << a*b;
cout << endl;
return 0;
}
输出结果:
100 * 25 = 2500
Process finished with exit code 0