fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Function isLeap(ByVal year As Integer) As Boolean
  5. Return (year Mod 400) = 0 Or ((year Mod 4) = 0 And (year Mod 100) <> 0)
  6. End Function
  7.  
  8. Public Shared Sub Main()
  9. Console.WriteLine(isLeap(Console.ReadLine))
  10. End Sub
  11. End Class
Runtime error #stdin #stdout #stderr 0.05s 15768KB
stdin
1976
2000
2004
2016
2100
2400
2600
3000
stdout
Standard output is empty
stderr
Unhandled Exception: System.InvalidProgramException: Invalid IL code in Test:Main (): IL_0000: ldarg.0