IDENTIFICATION DIVISION.
PROGRAM-ID. IDEONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 a Pic zz9.
77 b Pic zz9.
77 c Pic zz9.
77 d Pic zzz9.
77 e Pic zz9.
77 f Pic zz9.
77 n PIC Z9 .
PROCEDURE DIVISION.
Display "The Cobol Subtract/Divide Program.".
Subtract 50 From 100 giving c.Divide 1225 By 35 giving f.
Display "100 minus 50 Equals ",c.
Display "1225 Divided By 35 Equals ",f.
ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgk3NyBhIFBpYyB6ejkuCgk3NyBiIFBpYyB6ejkuCgk3NyBjIFBpYyB6ejkuCgk3NyBkIFBpYyB6eno5LgoJNzcgZSBQaWMgeno5LgoJNzcgZiBQaWMgeno5LgoJNzcgbiBQSUMgWjkgLgoJUFJPQ0VEVVJFIERJVklTSU9OLgoJRGlzcGxheSAiVGhlIENvYm9sIFN1YnRyYWN0L0RpdmlkZSBQcm9ncmFtLiIuCglTdWJ0cmFjdCA1MCBGcm9tIDEwMCBnaXZpbmcgYy5EaXZpZGUgMTIyNSBCeSAzNSBnaXZpbmcgZi4KCURpc3BsYXkgIjEwMCBtaW51cyA1MCBFcXVhbHMgIixjLgoJRGlzcGxheSAiMTIyNSBEaXZpZGVkIEJ5IDM1IEVxdWFscyAiLGYuCglBQ0NFUFQgbgoJCVBFUkZPUk0gVU5USUwgbiA9IDQyCgkJCURJU1BMQVkgbgoJCQlBQ0NFUFQgbgoJCUVORC1QRVJGT1JNLgoJCVNUT1AgUlVOLgo=