Question: Assign the value 7 to the variable guess _ me , and the value 1 to the variable number. Write a while loop that compares
Assign the value to the variable guessme and the value to the variable number. Write a while loop that compares number with guessme Print 'too low' if number is less than guess me If number equals guessme print 'found it and then exit the loop. If number is greater than guessme print 'oops' and then exit the loop. Increment number at the end of the loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
