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 zz9.
77 c Pic zz9.
77 n PIC Z9 .
PROCEDURE DIVISION.
Compute b = (90 - 45).
Compute c = (2025 / 45).
Display "Subtract 45 From 90 Equals: ",b.
Display "Divide 2025 By 45 Equaks: ",c.
ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgkwMSBhIFBpYyB4KDQ2KSB2YWx1ZSAiVGhlIENvYm9sIENvbXB1dGUgU3VidHJhY3QvRGl2aWRlLiIuCgk3NyBiIFBpYyB6ejkuCgk3NyBjIFBpYyB6ejkuCgk3NyBuIFBJQyBaOSAuCglQUk9DRURVUkUgRElWSVNJT04uCglDb21wdXRlIGIgPSAoOTAgLSA0NSkuCglDb21wdXRlIGMgPSAoMjAyNSAvIDQ1KS4KCURpc3BsYXkgIlN1YnRyYWN0IDQ1IEZyb20gOTAgRXF1YWxzOiAiLGIuCglEaXNwbGF5ICJEaXZpZGUgMjAyNSBCeSA0NSBFcXVha3M6ICIsYy4KCUFDQ0VQVCBuCgkJUEVSRk9STSBVTlRJTCBuID0gNDIKCQkJRElTUExBWSBuCgkJCUFDQ0VQVCBuCgkJRU5ELVBFUkZPUk0uCgkJU1RPUCBSVU4uCg==