练习1.4 使用乘法运算符"*"打印两个数的积。
#include "stdafx.h"
#include <iostream>
/*
* 主函数:
* 读取两个数,并求出它们的积。
*/
int main()
{
std::cout << "Enter two numbers:" << std::endl;
int v1 = 0, v2 = 0;
std::cin >> v1 >> v2;
std::cout << " The sum of "
<< v1 << " and "
<< v2 << " is "
<< v1 * v2 << std::endl;
system("pause");
return 0;
}