IDENTIFICATION DIVISION.
PROGRAM-ID. IDEONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 a Pic zz9.
77 b Pic zz9.
77 n PIC Z9 .
PROCEDURE DIVISION.
compute a = (121 - 77).
compute b = (289 / 17).
display "121 minus 77 ",a.
display "289 divided by 17 ",b.
ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgk3NyBhIFBpYyB6ejkuCgk3NyBiIFBpYyB6ejkuCgk3NyBuIFBJQyBaOSAuCglQUk9DRURVUkUgRElWSVNJT04uCgljb21wdXRlIGEgPSAoMTIxIC0gNzcpLgoJY29tcHV0ZSBiID0gKDI4OSAvIDE3KS4KCWRpc3BsYXkgIjEyMSBtaW51cyA3NyAiLGEuCglkaXNwbGF5ICIyODkgZGl2aWRlZCBieSAxNyAiLGIuCglBQ0NFUFQgbgoJCVBFUkZPUk0gVU5USUwgbiA9IDQyCgkJCURJU1BMQVkgbgoJCQlBQ0NFUFQgbgoJCUVORC1QRVJGT1JNLgoJCVNUT1AgUlVOLgo=