fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5.  
  6. Dim number as Integer
  7. Dim counter as Integer
  8. Dim value as Integer
  9. Dim greatest as Integer
  10.  
  11. number = Console.readline()
  12. for counter = 1 to number
  13. value = console.readline()
  14. if (counter = 1 or value > greatest)
  15. greatest = value
  16. end if
  17. next
  18. Console.writeline("Greatest : {0}", greatest)
  19. End Sub
  20. End Class
Success #stdin #stdout 0.08s 25664KB
stdin
4
23
54
12
8
stdout
Greatest : 54