I'm learning while loops and I'm having trouble with this program I'm writing. The user inputs 2 numbers and I have to be able to display different things, like the odd numbers between the numbers entered. This is what I have so far. If someone could steer me in the right direction, I'd really appreciate it.
Code:#include <iostream> using namespace std; int main() { int firstNum; int secondNum; cout << "Enter two numbers." << endl; cout << "First number must be less than or equal " << "to the second number you enter" << endl; cout << "Enter numbers: "; cin >> firstNum >> secondNum; cout << endl; while (firstNum <= secondNum) { cout << "Odd integers between " << firstNum << " and " << secondNum << "are: ";