Change it so that it outputs the answer in decimal -- get z into the AC register and execute and "output" instruction.
What do you think will happen if you have no HALT instruction at the end of the program? Somebody in the lab should try it and report what happens.