Increment• x++ increases the value of x by 1, returning the old value of x. • See also: Decrement.
Examples Using InstantCalculatorsInitialize a to the value 3. Increment a with the InstantCalculator. Then click Calculate to see the result.
Out[2]= |  |
Check the value of a.
Out[3]= |  |
Entering Commands DirectlyYou can paste a template for this command via the Text Input button on the Increment Function Controller. Check the value of a.
Out[4]= |  |
Increment a again using the shorthand form.
Out[5]= |  |
Check the value of a.
Out[6]= |  |
Clear the variable definition. Increment is useful in loops.
|