// 1.18.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include <iostream>
int main()
{
std::cout << "Enter two numbers:" << std::endl;
int a = 0, b = 0;
std::cin >> a >> b;\
int lower = 0, higher = 0;
if (a >= b) {
lower = b;
higher = a;
}else {
lower = b;
higher = a;
}
//输出从lower到higher之间的值
std::cout << "Value of " << lower << " to " << higher
<< " inlvusive are: " << std::endl;
for (int val = lower; val <= higher; ++val)
std::cout << val << " ";
return 0;
}