#include <iostream> 
using namespace std; 
  
int main() 
{ 
  // read a score from the keyboard (see 5.1) 
  int usersGuess; 
  cout << "I am thinking of a number between 1-10? << endl;    
  cout << "Try to guess the number [1-10]: "; 
  cin >> usersGuess; 
  cin.ignore(1000, 10); 
  
  // see if the guess is right 
  if (usersGuess == 7) 
    cout << "You guessed it!" << endl; 
} 
