This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 04/03/2010 for the course COMPSCI 600.107 taught by Professor Houlahan during the Spring '08 term at Johns Hopkins.
- Spring '08