please help me in this qbasic computer language.
Goto line statement: shows error, how to fix it?
I have written correct or not?
Please solve this problem please
Attachments:
Answers
Answered by
1
Right / Wrong:
Wrong
Correction:
40 PRINT "first line" : GOTO GOHERE
50 PRINT "second line": GOTO 3
GOHERE:
PRINT "third line"
GOTO 2
60 END
Remarks:
I do not know if my correction will work or not, but just give it a try, and replace your line of co+de with mine.
I also would recommend you to give line numberings, leaving 10 gaps in each. For example, 40, then 50, and then 60.
Similar questions