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 12.
77 ws-vol pic 9999 value zeros.
77 n PIC Z9 .
PROCEDURE DIVISION.
Display "The Cobol Volume Of A Cylinder Program.".
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.
CUlERU5USUZJQ0FUSU9OIERJVklTSU9OLgoJUFJPR1JBTS1JRC4gSURFT05FLgoJRU5WSVJPTk1FTlQgRElWSVNJT04uCglEQVRBIERJVklTSU9OLgoJV09SS0lORy1TVE9SQUdFIFNFQ1RJT04uCgk3NyB3cy1hIHBpYyA5djk5IHZhbHVlIDMuMTQuCgk3NyB3cy1jIHBpYyA5OSB2YWx1ZSAxMi4KCTc3IHdzLWQgcGljIDk5IHZhbHVlIDEyLgoJNzcgd3Mtdm9sIHBpYyA5OTk5IHZhbHVlIHplcm9zLgoJNzcgbiBQSUMgWjkgLgoJUFJPQ0VEVVJFIERJVklTSU9OLgoJRGlzcGxheSAiVGhlIENvYm9sIFZvbHVtZSBPZiBBIEN5bGluZGVyIFByb2dyYW0uIi4KCURpc3BsYXkgd3MtYSIgIndzLWMiICJ3cy1kLgoJQ29tcHV0ZSB3cy12b2wgPSB3cy1jKioyICogd3MtZCAqIHdzLWEuCglEaXNwbGF5ICJUaGUgVm9sdW1lIE9mIEEgQ3lsaW5kZXIgIix3cy12b2wuCglBQ0NFUFQgbgoJCVBFUkZPUk0gVU5USUwgbiA9IDQyCgkJCURJU1BMQVkgbgoJCQlBQ0NFUFQgbgoJCUVORC1QRVJGT1JNLgoJCVNUT1AgUlVOLgo=