{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Psuedo Code for hi_lo

Psuedo Code for hi_lo - else if x< y say"that number...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
set y at random integer set count to zero ask "what number am i thinking of" input number = x set count to count + 1 while x is not y, and count <= 7 if x > y, say "that number is too high" ask "what number am i thinking of" input number;set count to count +1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else if x < y, say "that number is too low" ask "what number am i thinking of" input number; set count to count + 1 if x is not y and count > 7 say "you lose." if x is y and count <= 7 say "congraduations, you win"...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online