The user can always enter variables on the same line or on different lines with cin.
1 2 3 4 5
int x, y;
cout << "Enter in 2 numbers" << endl;
cin >> x;
cin >> y;
The user can either separate the values by a space or by a carriage return and it will put them into x and y correctly. (You could combine those cin statements into 1 if you wanted to as well).