[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: My First Computer
Ross Simpson wrote ...
>I like this one:
>
>BEGIN
> REPEAT
> WRITELN('Hello');
> DELAY(1);
> UNTIL KEYPRESSED;
>END.
>
>except the keypress requires a bit of pressing down.
Is this simple enough? (In QuickBasic)
DO UNTIL INKEY$ <> ""
PRINT "Hello World! ";
LOOP
Or this? (In Commodore Basic 7.0)
10 do while a$ = ""
20 print "Hello World! ";
30 get a$
40 loop
And neither requires much of a keypress to stop.
Best regards,
Sam Gillett aka Mars Probe @ Starship Intrepid 1-972-221-4088
Last 8-bit BBS in the Dallas area. Commodore lives!