fork(1) download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID. IDEONE.
  3. ENVIRONMENT DIVISION.
  4. DATA DIVISION.
  5. WORKING-STORAGE SECTION.
  6. 77 a Pic zz9.
  7. 77 b Pic zz9.
  8. 77 n PIC Z9 .
  9. PROCEDURE DIVISION.
  10. subtract 25 From 50 giving a.
  11. divide 625 by 25 giving b.
  12. display "Subtract 25 From 50 Equals: ",a.
  13. display "Divide 625 By 25 Equals: ",b.
  14. ACCEPT n
  15. PERFORM UNTIL n = 42
  16. DISPLAY n
  17. ACCEPT n
  18. END-PERFORM.
  19. STOP RUN.
  20.  
Success #stdin #stdout 0.01s 5280KB
stdin
10
43
5
42
1
stdout
Subtract 25 From 50 Equals:  25
Divide 625 By 25 Equals:  25
10
43
 5