IDENTIFICATION DIVISION.
PROGRAM-ID. IDEONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 a PIC xx value '20'.
01 c PIC xx value '14'.
77 d PIC zz9.
77 n PIC Z9 .
PROCEDURE DIVISION.
Display "The Cobol Area Of A Rectangle Program.".
Display "Side X In Inches ",a.
Display "Side Y In Inches ",c.
Multiply 20 By 14 Giving d.
Display "The Area Of The Rectangle In Inches ",d.
ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgkwMSBhIFBJQyB4eCB2YWx1ZSAnMjAnLgoJMDEgYyBQSUMgeHggdmFsdWUgJzE0Jy4KCTc3IGQgUElDIHp6OS4KCTc3IG4gUElDIFo5IC4KCVBST0NFRFVSRSBESVZJU0lPTi4KCURpc3BsYXkgIlRoZSBDb2JvbCBBcmVhIE9mIEEgUmVjdGFuZ2xlIFByb2dyYW0uIi4KCURpc3BsYXkgIlNpZGUgWCBJbiBJbmNoZXMgIixhLgoJRGlzcGxheSAiU2lkZSBZIEluIEluY2hlcyAiLGMuCglNdWx0aXBseSAyMCBCeSAxNCBHaXZpbmcgZC4KCURpc3BsYXkgIlRoZSBBcmVhIE9mIFRoZSBSZWN0YW5nbGUgSW4gSW5jaGVzICIsZC4KCUFDQ0VQVCBuCgkJUEVSRk9STSBVTlRJTCBuID0gNDIKCQkJRElTUExBWSBuCgkJCUFDQ0VQVCBuCgkJRU5ELVBFUkZPUk0uCgkJU1RPUCBSVU4uCg==