Reply to post: Re: The way Basic worked in the old days

Q. What's today's top language? A. Python... no, wait, Java... no, C

alisonken1

Re: The way Basic worked in the old days

In Basic - there is no labels.

10 IF x = 5 GOTO 50

20 REM THIS IS A COMMENT AT LINE 20

30 REM THIS IS A COMMENT AT LINE 30

40 REM THIS IS A COMMENT AT LINE 40

50 PRINT "X = 5"

60 REM THIS IS A COMMENT AT LINE 60

70 REM THIS IS A COMMENT AT LINE 70

Now, if you delete comments at line 20 and 30:

10 IF x = 5 GOTO 50

20 REM THIS IS A COMMENT AT LINE 40

30 PRINT "X = 5"

40 REM THIS IS A COMMENT AT LINE 60

50 REM THIS IS A COMMENT AT LINE 70

(edited for missing rem statements)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019