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. move 0 to cs.
  14. move 0 to fh.
  15.  
  16.  
  17. display (5 20) "Celsius".
  18. display (5 40) "Fahrenheit".
  19. display " ".
  20.  
  21. perform convert-rtn until cls = 160.
  22.  
  23. stop run.
  24.  
  25. convert-rtn.
  26. compute fh = ( ( 9 / 5 ) * cs ) + 32.
  27. move fh to Nfah.
  28. display " " cls " " Nfah.
  29. add 10 to cls.
  30.  
  31.  
  32.  
  33.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cbl:    13: error: Invalid argument expecting variable, on or before 'cs'
prog.cbl:    14: error: undefined variable CS, on or before '.'
prog.cbl:    14: error: Invalid argument expecting variable, on or before 'fh'
prog.cbl:    17: error: undefined variable FH, on or before '.'
prog.cbl:    17: error: syntax error, on or before '('
prog.cbl:    17: error: unknown or wrong statement, on or before '('
prog.cbl:    18: error: unknown or wrong statement, on or before '('
prog.cbl:    26: error: Invalid argument expecting variable, on or before 'fh'
prog.cbl:    26: error: Invalid argument expecting variable, on or before 'cs'
prog.cbl:    27: error: undefined variable FH, on or before '.'
prog.cbl:    27: error: Invalid argument expecting variable, on or before 'fh'
prog.cbl:    28: error: undefined variable FH, on or before '.'
stdout
Standard output is empty