I neeed to Create a guessing game with numbers between 1 and 100. The loop will never exit until the condition is met. The user will continually guess and display:
Sorry Too Low
Sorry Too High
You Guessed Right
** YOU MUST USE THE BOOLEAN VARIABLE… when the boolean is true, the loop will exit **
This is what i got so far;
//Assignment 10 Program 1
#include <iostream>
using namespace std;
int main()
{
//Declaring Varibles
int guess=50,x;
cout << "This program is a random guessing game."<<endl;
do
{
cout << "Enter your guess (1-100): ";
cin >> guess;