fizzbuzz TI-82 Source Code - Skip Header

fizzbuzz TI-82 Source Code

This is intended to be the human readable version of the source code for Fizz Buzz. This version is intended to work only on the TI-82 Texas Instruments graphic calculator. Also available: Documentation about "Fizz Buzz" and versions of the program for other calculators and in other formats.

Any line that begins with a backslash is a comment and should not be entered into the calculator. (Comments have been colored green) For an authoritative copy of this program's source code that can be imported to the calculator via a computer, consult the text version of Fizz Buzz source code for the TI-82, along with the character reference. The special character reference also gives an overview of all non-ASCII characters for the calculator, and shows the menus in which they can be found.

\COMMENT=Program file dated 04/10/96, 18:39
:Lbl 6
:Disp "BUZZ FOR?-(0 NOT"
:Input "T0 BUZZ):",C
:Disp "FIZZ FOR?-(0 NOT"
:Input "TO FIZZ):",D
:If (C<0)+(C>9)+(D<0)+(D>9)>0
:Goto 6
:If C≠0
:Disp "B FOR BUZZ"
:If D≠0
:Disp "F FOR FIZZ"
:Lbl 1
:Input E
:If C=0
:Goto 3
:If A/C=int (A/C)
:Lbl 2
:If fPart H=C/10
:iPart H→I
:If I=0
:Goto 3
:Goto 2
:Lbl 3
:If D=0
:Goto 5
:If A/D=int (A/D)
:Lbl 4
:If fPart I=D/10
:iPart I→J
:If J=0
:Goto 5
:Goto 4
:Lbl 5
:If G=B
:If H=F
:If I=E
:Goto 1
:Disp "WRONG!","YOU LOSE!"