IDENTIFICATION DIVISION.
PROGRAM-ID. IDEONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 a Pic X(46) value "The Cobol Compute Subtract/Divide.".
77 b Pic zzz9.
77 c Pic zzz9.
77 n PIC Z9 .
PROCEDURE DIVISION.
Compute b = (90 - 45).
Compute c = (2025 / 45).
Display "90 Minus 45 Equals: ",b.
Display "2025 Divided By 45 Equals: ",c.
ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgkwMSBhIFBpYyBYKDQ2KSB2YWx1ZSAiVGhlIENvYm9sIENvbXB1dGUgU3VidHJhY3QvRGl2aWRlLiIuCgk3NyBiIFBpYyB6eno5LgoJNzcgYyBQaWMgenp6OS4KCTc3IG4gUElDIFo5IC4KCVBST0NFRFVSRSBESVZJU0lPTi4KCUNvbXB1dGUgYiA9ICg5MCAtIDQ1KS4KCUNvbXB1dGUgYyA9ICgyMDI1IC8gNDUpLgoJRGlzcGxheSAiOTAgTWludXMgNDUgRXF1YWxzOiAiLGIuCglEaXNwbGF5ICIyMDI1IERpdmlkZWQgQnkgNDUgRXF1YWxzOiAiLGMuCglBQ0NFUFQgbgoJCVBFUkZPUk0gVU5USUwgbiA9IDQyCgkJCURJU1BMQVkgbgoJCQlBQ0NFUFQgbgoJCUVORC1QRVJGT1JNLgoJCVNUT1AgUlVOLgo=