13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INCR statementFunctionSyntaxRemarksDifferencesSee AlsoINCR increments a variable.INCR numeric variable [,size]size is an optional numeric expression that indicates the value to beadded to the specified variable. If size is omitted, 1 is used.INCR is simply a quick way to increment a variable without usingan assignment statement.This statement is not available in Interpretive BASIC.DECRExample 1% = -15J% = -500Iinitialize counter variablesWHILE 1% < aPRINT 1%, J% I display the valueINCR 1% I increment value by 1INCR J%, 5 I increment value by 5WENDEND I end the program<strong>Turbo</strong> <strong>Basic</strong> Reference Directory 225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!