Practice writing a program that uses if statements and a while loop
The Assignment
Write a program to play the game "I'm thinking of a number." The program will play the role of the person who has the "secret" number. Your program should prompt the user to guess a number. If user's goms is incorrect, your program should say whether the guess is too high or too low, and try again
Example Compilation and Execution
gec -Wall thinking.e 18/a.out I'm thinking of a number between 1 and 100.
Quess my number.
Your guena? 13
Too lou!!
Your guess 20
Too low!
Your guean? 35
Too lev!
Your guess? 99
Too hight -
Your guesst 74
Too high!
Your guess? 45
Too low!
Your guess? 84
Too high!
Your guess? 60