fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. dim a as integer
  6.  
  7. For a = 2 To 20 step 2 ’ to make it count by 2’s use for a = 1 to 6 step 2
  8. Console.WriteLine(a)
  9. Next a
  10. Console.ReadLine()
  11. End Sub
  12. End Class
Success #stdin #stdout 0.03s 24192KB
stdin
Standard input is empty
stdout
2
4
6
8
10
12
14
16
18
20