IDENTIFICATION DIVISION.
PROGRAM-ID. IDEONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 a Pic x(45) value "The Cobol Subtract/Divide Prog.".
77 b Pic zzz9.
77 c Pic zzz9.
77 n PIC Z9 .
PROCEDURE DIVISION.
Subtract 25 From 100 giving b.
Divide 2025 by 45 giving c.
Display "100 Minus 25 Equals: ",b.
Display "Divide 45 Into 2025 Equlads: ",c.
ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgkwMSBhIFBpYyB4KDQ1KSB2YWx1ZSAiVGhlIENvYm9sIFN1YnRyYWN0L0RpdmlkZSBQcm9nLiIuCgk3NyBiIFBpYyB6eno5LgoJNzcgYyBQaWMgenp6OS4KCTc3IG4gUElDIFo5IC4KCVBST0NFRFVSRSBESVZJU0lPTi4KCVN1YnRyYWN0IDI1IEZyb20gMTAwIGdpdmluZyBiLgoJRGl2aWRlIDIwMjUgYnkgNDUgZ2l2aW5nIGMuCglEaXNwbGF5ICIxMDAgTWludXMgMjUgRXF1YWxzOiAiLGIuCglEaXNwbGF5ICJEaXZpZGUgNDUgSW50byAyMDI1IEVxdWxhZHM6ICIsYy4KCUFDQ0VQVCBuCgkJUEVSRk9STSBVTlRJTCBuID0gNDIKCQkJRElTUExBWSBuCgkJCUFDQ0VQVCBuCgkJRU5ELVBFUkZPUk0uCgkJU1RPUCBSVU4uCg==