Arithmetic/Integer: Difference between revisions
Content deleted Content added
→TI-89 BASIC: new example |
|||
Line 874: | Line 874: | ||
Also, it's important to surround the arguments to the <code>expr</code> in braces, especially when any of the parts of the expression are not literal constants. Discussion of this is on [http://wiki.tcl.tk/10225 The Tcler's Wiki]. |
Also, it's important to surround the arguments to the <code>expr</code> in braces, especially when any of the parts of the expression are not literal constants. Discussion of this is on [http://wiki.tcl.tk/10225 The Tcler's Wiki]. |
||
=={{header|TI-89 BASIC}}== |
|||
Local a, b |
|||
Prompt a, b |
|||
Disp "Sum: " & string(a + b) |
|||
Disp "Difference: " & string(a - b) |
|||
Disp "Product: " & string(a * b) |
|||
Disp "Integer quotient: " & string(intDiv(a, b)) |
|||
Disp "Remainder: " & string(remain(a, b)) |
|||
=={{header|Toka}}== |
=={{header|Toka}}== |