This preview shows page 1. Sign up to view the full content.
Unformatted text preview: end if (gnum < num) disp ('Too low') elseif (gnum > num) disp ('Too high') else disp ('You win') break end r = input ('Do you want to guess again? ','s'); end if gnum ~= num fprintf ('You lose! The number is %d\n', num) end...
View Full Document
This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.
- Spring '11