A Disp command will display text or a variable on the next line of the output screen. Unlike Output(, Disp will not flow text to the next line, but it will scroll the screen if it needs a new line to write to.
In TI-BASIC 84, Real and Complex values will be right aligned, everything else will be left aligned. In TI-BASIC 89, All values are left aligned.
If there are multiple lines to display, multiple parameters can be used. Each parameter will be displayed on a new line. Parameters are separated with commas.
- 3: Disp
The last line
:Disp "VOLUME IS",V will display the string
VOLUME IS and because of the , it will show the value of
V on the next line.
By entering 1.5 as the Radius (R) and 3 as the height (H) it will calculate the volume (V) of a cylinder like this:
R=?1.5 H=?3 VOLUME IS 21.20676041