on-internet
← Community

Is this pseudocode correct for the following assignment?

Stack Overflow ·

The assignment: Draw a structured flowchart and write pseudocode that describes the process of guessing a number between 1 and 100. After each guess, the player is told that the guess is too high or too low. The process continues until the player guesses the correct number. My pseudocode: Start Num1=6 Get Num2 while Num2 is not = to Num1 if Num2 > Num1 print "too high" else print "too low" endif Get Num2 endwhile Stop

Comments

Sign in or sign up to comment and upvote.

No comments yet.