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 = (25 + 25).
  11. compute b = (25 * 25).
  12. display "25 Plus 25 Equaks: ",a.
  13. display "25 Times 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 0s 5280KB
stdin
10
43
5
42
1
stdout
25 Plus 25 Equaks:  50
25 Times 25 Equals: 625
10
43
 5