12345678910111213
//Solution #include <iostream> using namespace std; int main() { // Input and loop defined, only adds if input is correct. for (short int i = 8, input; i <= 23; i += (i == input)) { cout << "Enter the number " << i << ": "; cin >> input; } return 0; }