fork download
  1. Imports System
  2. Public Class Test
  3. Public Shared Sub Main()
  4.  
  5. Console.writeline(frac(5))
  6. End sub
  7.  
  8. Public Shared Function frac(byval n as integer)as long
  9. Dim a as integer = 1
  10. Dim id as integer
  11. For id = 1 to n
  12. a *= i
  13. Next
  14. Return a
  15. End Function
  16. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/sBXoT6/prog.vb (12,7) : Error VBNC30451: Could not resolve the name 'i'
There were 1 errors and 0 warnings.
Compilation took 00:00:00.9665800
stdout
Standard output is empty