text: #include <iostream>
  #include <time.h>
  using namespace std;
  
  int main() {
  	int random_number, guess;
  
  	srand (time(NULL));
  	random_number = rand() % 100 + 1;
  	cout << "Guess our number (1 to 100) ";
  	do {
  		if (!(cin >> guess)) {
  			cout << "Please enter only numbers" << endl;
  			cin.clear();
  			cin.ignore(10000, '\n');
  		} else {
  			if (random_number < guess) {
  				cout << "The secret number is less than" << guess << endl;
  			}
  			else if (random_number > guess) {
  				cout << "The secret number is higher than" << guess << endl;
  			}
  		}
  	}
  	while (random_number != guess);
  	cout << "Congratulations!" << endl;
  	return 0;
  }
  