[C++ Primer] 练习1.5

#include <iostream>

using std::cin;
using std::cout;
using std::endl;

int main() {
    int num1 = 0, num2 = 0;
    cin >> num1;
    cin >> num2;
    cout << "num1: ";
    cout << num1;
    cout << " ,num2: ";
    cout << num2;
    cout << " ,num1 * num2 = ";
    cout << num1 * num2;
    cout << endl;
    return 0;
}

推荐阅读更多精彩内容