Tinkering Around with QBasic

preview_player
Показать описание
Fun times.
Рекомендации по теме
Комментарии
Автор

I think QuickBasic was the 'full' version of QBasic. I remember my dad having a retail copy, and it actually could turn your BASIC programs into EXEs.

MatroxMillennium
Автор

Why not make the loop control user input? You use one variable and it would clean up the code massively. Also, does basic not have the AND logic operator?
Simple like:
declare userinput and set it to something out of range like -1
Print "Enter a number between 1 and 100."
get userinput
while userinput < 1 AND userinput >100
Print "User input out of range. Please enter a number between 1 and 100."
end while
Print "Congrats! You entered: " + userinput + " you are a bonafide keyboard hero!"

WhatsOnMyShelf
Автор

cls
10 input USERINPUT
if USERINPUT>100 or USERINPUT<1 then goto 10
else print "You have entered: "; USERINPUT

owwz