Codebase list ohcount / 420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main test / detect_files / structured_basic.b
420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main

Tree @420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main (Download .tar.gz)

structured_basic.b @420c4794-75b8-4551-a2c5-42f5fb1d3fbf/mainraw · history · blame

INPUT "What is your name: "; U$
PRINT "Hello "; U$
REM Test
INPUT "How many stars do you want: "; N
S$ = ""
FOR I = 1 TO N
S$ = S$ + "*"
NEXT I
PRINT S$

REM
INPUT "Do you want more stars? "; A$
IF LEN(A$) = 0 THEN GOTO 110
A$ = LEFT$(A$, 1)
IF (A$ = "Y") OR (A$ = "y") THEN GOTO 40
PRINT "Goodbye ";
FOR I = 1 TO 200
PRINT U$; " ";
NEXT I
PRINT