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 c Pic zz9.
  9. 77 d Pic zz9.
  10. 77 e Pic zz9.
  11. 77 f Pic zzz9.
  12. 77 n PIC Z9 .
  13. PROCEDURE DIVISION.
  14. add 25 To 25 Giving c.multiply 35 by 35 giving f.
  15. Display "25 Plus 25 Equals ",c.
  16. Display "35 Times 35 Equals ",f.
  17. ACCEPT n
  18. PERFORM UNTIL n = 42
  19. DISPLAY n
  20. ACCEPT n
  21. END-PERFORM.
  22. STOP RUN.
  23.  
Success #stdin #stdout 0.01s 5280KB
stdin
10
43
5
42
1
stdout
25 Plus 25 Equals  50
35 Times 35 Equals 1225
10
43
 5