In classic QBASIC, SLEEP 1 waits 1 second. Some online compilers interpret this as "wait for a keypress." Use _DELAY in QB64 or a FOR loop dummy timer instead.
Not all online compilers are created equal. Here is my curated list of the best platforms for running QBASIC code today. qbasic online compiler
You might be wondering: Why not just install DOS? Here are five compelling reasons why online compilers have become the standard for retro BASIC programming: In classic QBASIC, SLEEP 1 waits 1 second
Copy and paste this code into any of the compilers above to see if it works: Here is my curated list of the best
CLS
PRINT "Hello, Retro Coder!"
PRINT "-------------------"
INPUT "Enter your name: ", Name$
PRINT "Welcome to the future, "; Name$; "!"
PRINT
PRINT "Let's count to 5:"
FOR i = 1 TO 5
PRINT i
SLEEP 1
NEXT i
PRINT "Done! QBASIC lives online."
END