fork download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID. IDEONE.
  3. ENVIRONMENT DIVISION.
  4. DATA DIVISION.
  5. WORKING-STORAGE SECTION.
  6. 77 n PIC Z9 .
  7. PROCEDURE DIVISION.
  8. display "The ABCD Insurance Policy For Mary Smith".
  9. display "Total Premium is $797.60".
  10. display "Total Fee Is $0.88".
  11. display "The Total Premium And Fee Is 798.48".
  12. ACCEPT n
  13. PERFORM UNTIL n = 42
  14. DISPLAY n
  15. ACCEPT n
  16. END-PERFORM.
  17. STOP RUN.
  18.  
Success #stdin #stdout 0.01s 5284KB
stdin
10
43
5
42
1
stdout
The ABCD Insurance Policy For Mary Smith
Total Premium is $797.60
Total Fee Is $0.88
The Total Premium And Fee Is 798.48
10
43
 5