fork download
  1. identification division.
  2. program-id. ballo.
  3. environment division.
  4. data division.
  5. working-storage section.
  6. 77 fah pic 9999v99 value 0.
  7. 77 cls pic 9999v99 value 0.
  8. 77 Nfah pic zzz9.99.
  9.  
  10.  
  11. procedure division.
  12. main.
  13.  
  14.  
  15. display (5 20) "Celsius".
  16. display (5 40) "Fahrenheit".
  17. display " ".
  18.  
  19. perform convert-rtn until cls = 160.
  20.  
  21. stop run.
  22.  
  23. convert-rtn.
  24. compute fh = ( ( 9 / 5 ) * cs ) + 32.
  25. move fh to Nfah.
  26. display " " cls " " Nfah.
  27. add 10 to cls.
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cbl:    15: error: syntax error, on or before '('
prog.cbl:    15: error: unknown or wrong statement, on or before '('
prog.cbl:    16: error: unknown or wrong statement, on or before '('
prog.cbl:    24: error: Invalid argument expecting variable, on or before 'fh'
prog.cbl:    24: error: Invalid argument expecting variable, on or before 'cs'
prog.cbl:    25: error: undefined variable FH, on or before '.'
prog.cbl:    25: error: Invalid argument expecting variable, on or before 'fh'
prog.cbl:    26: error: undefined variable FH, on or before '.'
stdout
Standard output is empty