#include <iostream>
/*
*简单主函数:
*读取两个数,求它们的乘积 与 和
*/
int main()
{
std::cout << "Hello World!" << std::endl;
//提示用户输入两个数
std::cout << " Please enter two number: " << std::endl;
int v1, v2;//保存我们读入的输入数据的变量
std::cin >> v1 >> v2;//读取输入数据
std::cout << "The product of " << v1 << " and " << v2 << " is " << v1 * v2 << std::endl;
std::cout << "The sum of " << v1 << " and " << v2 << " is " << v1 + v2 << std::endl;
//我们通常需要再调试期间注释掉一些代码。由于这些代码可能包含界定符对形式的注释,因此可能导致注释嵌套错误
//因此最好的方式是用单行注释的方式注释掉代码段的每一行。
**/不能嵌套
int sum = 0, val = 1;
//只要val的值小于等于10,while循环就会持续执行
while (val <= 10) {