Sunday, February 17

AUTO

The AUTO command allows you to generate an increment line number automatically.
  • You can see the next line number each time you press the Enter key.
  • AUTO is terminated by pressing CTRL+C or CTRL+BREAK. BASIC will then return to the command level.
Syntax :
AUTO [line number] [, [increment]
Where,
line number : starting line number.
increment : increment to the next line number.
  • AUTO begins numbering at line number and increments each subsequent line number by increment
  • When the line number and increment are not mentioned, the default for both values is 10 (i.e. both line number and increment values is 10)
Example 16
AUTO  (press enter key)
Generates line numbers 10,20,30.40 and so on.
AUTO 5 (press enter key)
Generates line numbers 5,15,25,35 and so on.
AUTO 100,50 (press enter key)
Generates line numbers
100,150,200,250 and so on. 

No comments:

Post a Comment