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 zzz9.
  8. 77 n PIC Z9 .
  9. PROCEDURE DIVISION.
  10. compute a = (45 + 45).
  11. compute b = (45 * 45).
  12. Display "45 Plus 45 Equals: ",a.
  13. Display "45 Times 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 0.01s 5272KB
stdin
10
43
5
42
1
stdout
45 Plus 45 Equals:  90
45 Times 45 Equals: 2025
10
43
 5