fork 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. Compute a = (50 - 25).
  11. Compute b = (625 / 25).
  12. display "A = (50 minus 25) ",a.
  13. display "B = (625 divided by 25) ", 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 5288KB
stdin
10
43
5
42
1
stdout
A = (50 minus 25)  25
B = (625 divided by 25)  25
10
43
 5