Loading ...
Sorry, an error occurred while loading the content.

33427Altair BASIC and hitting my head with my shoe repeatedly

Expand Messages
  • B. Degnan
    Dec 10, 2013
    • 0 Attachment
      Working on BASIC class.

      "Trivia question" - can anyone tell me why the following code works in
      MBASIC4 but not Altair BASIC?

      hint
      leaving out spaces (10 FORK=1TO1000) has no effect.

      using a different variable name (FORG=1to1000), no effect.

      MEMORY SIZE?
      HIGHEST DISK NUMBER? 0
      HOW MANY FILES? 1
      HOW MANY RANDOM FILES? 1

      43129 BYTES FREE
      ALTAIR BASIC REV. 4.0
      [DISK EXTENDED VERSION]
      COPYRIGHT 1976 BY MITS INC.
      OK
      10 FOR K=1 TO 1000
      20 PRINT K;
      30 NEXT K
      40 END
      RUN
      SYNTAX ERROR IN 10
      OK
    • Show all 9 messages in this topic