IDENTIFICATION DIVISION.
PROGRAM-ID. IDEONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 ws-a Pic 9v99 value 3.14.
77 ws-c Pic 99 value 12.
77 ws-d Pic 99 value 13.
77 ws-vol Pic 9999 value zeros.
77 n PIC Z9 .
PROCEDURE DIVISION.
display "The Cobol Volume Of A Cylinder.".
Display ws-a" "ws-c" "ws-d.
Compute ws-vol = ws-c**2 * ws-d * ws-a.
Display "The Volume Of A Cylinder ",ws-vol.ACCEPT n
PERFORM UNTIL n = 42
DISPLAY n
ACCEPT n
END-PERFORM.
STOP RUN.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgk3NyB3cy1hIFBpYyA5djk5IHZhbHVlIDMuMTQuCgk3NyB3cy1jIFBpYyA5OSB2YWx1ZSAxMi4KCTc3IHdzLWQgUGljIDk5IHZhbHVlIDEzLgoJNzcgd3Mtdm9sIFBpYyA5OTk5IHZhbHVlIHplcm9zLgoJNzcgbiBQSUMgWjkgLgoJUFJPQ0VEVVJFIERJVklTSU9OLgoJZGlzcGxheSAiVGhlIENvYm9sIFZvbHVtZSBPZiBBIEN5bGluZGVyLiIuCglEaXNwbGF5IHdzLWEiICJ3cy1jIiAid3MtZC4KCUNvbXB1dGUgd3Mtdm9sID0gd3MtYyoqMiAqIHdzLWQgKiB3cy1hLgoJRGlzcGxheSAiVGhlIFZvbHVtZSBPZiBBIEN5bGluZGVyICIsd3Mtdm9sLkFDQ0VQVCBuCgkJUEVSRk9STSBVTlRJTCBuID0gNDIKCQkJRElTUExBWSBuCgkJCUFDQ0VQVCBuCgkJRU5ELVBFUkZPUk0uCgkJU1RPUCBSVU4uCg==