

tinman47 wrote:After a few weeks of studying QB,.......with a few or alot of commands with no knowledge at all,...a problem;the SUB and GOSUB command.
Code: Select all
'This part defines the sub. It must come before anything else in the program
SUB roll10
PRINT (INT(RND*10)+1)
END SUB
'This part is the main program. It runs (or "calls") the "roll10" sub three times.
RANDOMIZE TIMER
CLS
roll10
roll10
roll10