fork download
  1. proc countup(a, b: int): int =
  2. var res = a
  3. while res <= b:
  4. return res
  5. inc(res)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(5, 8) Error: statement not allowed after 'return', 'break', 'raise' or 'continue'
stdout
Standard output is empty