fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim A,B,C as integer
  6. Dim mayor as integer
  7. Console.WriteLine("Digite primer numero:")
  8. A=Convert.Toint32(Console.ReadLine())
  9. Console.WriteLine("Digite segundo numero:")
  10. B=Convert.Toint32(Console.ReadLine())
  11. Console.WriteLine("Digite tercer numero:")
  12. C=Convert.Toint32(Console.ReadLine())
  13. if(A>B and A>C) then
  14. mayor=A
  15. Console.WriteLine(mayor)
  16. else
  17. if(B>A and B>C) then
  18. mayor=B
  19. Console.WriteLine(mayor)
  20. else
  21. if(C>A and C>B) then
  22. mayor=C
  23. Console.WriteLine(mayor)
  24. end if
  25. end if
  26. end if
  27. End Sub
  28. End Class
Success #stdin #stdout 0.08s 13456KB
stdin
2548
2
123
stdout
Digite primer numero:
Digite segundo numero:
Digite tercer numero:
2548