fork(1) download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim N as integer
  6. Console.Write("Digite número:")
  7. N=Convert.ToInt32(Console.ReadLine())
  8. If(N>0) Then
  9. Console.WriteLine("Positivo")
  10. Else
  11. If(N<0) Then
  12. Console.WriteLine("Negativo")
  13. Else
  14. if(N=0) then
  15. Console.WriteLine("Neutro")
  16. Else
  17. End If
  18. End If
  19. End If
  20. End Sub
  21. End Class
Runtime error #stdin #stdout #stderr 0.1s 16216KB
stdin
N=5
stdout
Digite número:
stderr
Unhandled Exception: System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] 
  at System.Convert.ToInt32 (System.String value) [0x00000] 
  at Test.Main () [0x00000]