#include <iostream> using namespace std; int main() { int x; for(x=0; x != 123; ) { cout << "Enter a number: "; cin >> x; } return 0; }
Enter a number: 2 Enter a number: 3 Enter a number: 2 Enter a number: 123