Skip to content

Instantly share code, notes, and snippets.

@KronicDeth
Forked from StabbyMcDuck/gist:9a537709f3cfa22bf9d7
Last active August 29, 2015 14:03
Show Gist options
  • Save KronicDeth/641376d90e79e2fa62fb to your computer and use it in GitHub Desktop.
Save KronicDeth/641376d90e79e2fa62fb to your computer and use it in GitHub Desktop.
do {
cout << "What is your guess?" << endl;
cin >> guess;
if (guess < magicNumber);
{
cout << "You guessed too low!" << endl;
}
else if (guess > magicNumber);
{
cout << "You guessed too high!" << endl;
}
else if (guess = magicNumber);
{
cout << "Your guess is correct! Huzzah!" << endl;
}
} while ((guess != estimate) && (tries >= 3));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment