fork download
  1. IDENTIFICATION DIVISION.
  2. PROGRAM-ID. IDEONE.
  3. ENVIRONMENT DIVISION.
  4. DATA DIVISION.
  5. WORKING-STORAGE SECTION.
  6. 01 a Pic xx value '12'.
  7. 01 b Pic xx value '12'.
  8. 77 c Pic zz9.
  9. 77 n PIC Z9 .
  10. PROCEDURE DIVISION.
  11. Display "Sides Are ",a," ",b.
  12. Multiply 12 By 12 Giving c.
  13. Display "The Area Of The Square Is: ",c.
  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 5284KB
stdin
10
43
5
42
1
stdout
Sides Are 12 12
The Area Of The Square Is: 144
10
43
 5