OUT Statement Programming Example OUT_EX.BAS is a program file in the subdirectory ADVR_EX that uses the OUT and INP statements to control the timer and speaker to produce a note. To look at the program in the View window and, optionally, to run it, use the File menu's Open Program command.