I got this for the code now, but i got he same problem if input is 10 1 then i get 10 2 for output and if its 1 10 i get 2 10 for output....Code:#include <iostream> using namespace std; int main() { std::cout<<"Input 2 numbers: "; int x, y; int upper, lower; std::cin >> x >> y; if ( x < y) x++; else { x > y; y++; } std::cout <<"Range of numbers is: "<< x << " to " << y; std::cin.ignore(); std::cin.get(); return 0; }