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 = (90 - 45).
  11. compute b = (2025 / 45).
  12. Display "90 Minus 45 Equals: ",a.
  13. Display "2025 Divided By 45 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 0s 5280KB
stdin
10
43
5
42
1
stdout
90 Minus 45 Equals:  45
2025 Divided By 45 Equals:  45
10
43
 5