// A program demonstrating while loop
#include <iostream>
#include <string>
using namespace std;
int main()
{
int number = 0;
int iq_level = 100;
while ( number != 4 ) {
// body of the loop
--iq_level;
cout << "Guess the number between 1 and 5: ";
cin >> number;
}
if ( iq_level == 99 ) {
cout << "You instantly got it!!\n";
} else {
cout << "You finally got it!\n";
}
return 0;
}