Guess the number/With feedback: Difference between revisions
Content added Content deleted
m (→{{header|Minimal BASIC}}: Removed obscuring REMs. Corrected jump for G >= 1.) |
|||
Line 1,383: | Line 1,383: | ||
n = random 100 |
n = random 100 |
||
repeat |
repeat |
||
g = number input |
g = number input |
||
write g |
write g |
||
if error = 1 |
if error = 1 |
||
print "You must enter a number!" |
print "You must enter a number!" |
||
elif g > n |
elif g > n |
||
print " is too high" |
print " is too high" |
||
elif g < n |
elif g < n |
||
print " is too low" |
print " is too low" |
||
. |
. |
||
until g = n |
until g = n |
||
. |
. |
||
print " is correct" |
print " is correct" |