A simple high log game project by molly arora. This is the game where you guess a number between 1 to 100. The program then asks you some simple queries about your guess and calculates the number you have guessed.
Now you have “<<totchan-chances<<“chances left.”<<endl;
if(chances==totchan)
{ cout<<”
Only “<<totchan<<“chances are allowed.Better luck next
time”;
cout<<”
The actual number was “<<number<<endl;
break;
}
}while (guess!=number);
cout<<”
Thank you for playing High/Low!”;
cout<<“Want to play it again? (y/n)…”;
cin>>ans;
}while(ans==’y’ || ans==’Y’);
}