title: Confused? How to find even numbers between two numbers? VB.NET
body: <p>How do I find the even numbers from 6 through 16.</p>
  
  <p>The thing is I'm working with events. How should I do this? I did a lot of research and found some code that might work but I'm not sure how it works. (I'm by no means advanced with vb.net - I'm just trying to finish this course.)</p>
  
  <p>What I did find was that I have to use MOD? I'm not even really sure how to use that with an event? Any code would be awesome to getting me on the road to finish this assignment. </p>
  
  <p>I took this code out of a program that had to find even numbers and it works great but the only downfall is that it starts from 1 and then whatever number you want it to stop at. I only need 6 through 16 .. </p>
  
  <pre><code>Imports System
  Imports System.Collections.Generic
  Imports System.Text
  Imports System.Diagnostics
  
  Module Module1
      Private Delegate Sub numManip()
  
      Sub Main()
          Dim evennumber As numManip
          Dim allNumbers As [Delegate]
          evennumber = New numManip(AddressOf Even)
          allNumbers = [Delegate].Combine(evennumber)
          allNumbers.DynamicInvoke()
      End Sub
  
      Sub Even()
          Console.Clear()
          Dim counter As Integer = 2
          Console.WriteLine("Even Numbers")
          Console.WriteLine("Please Enter the Number you Wish to End at: ")
          Dim number As Integer = Console.ReadLine()
          Console.Clear()
          Console.WriteLine("All Even Numbers From 6 to " &amp; number)
          Do Until counter &gt; number
              Console.WriteLine(counter)
              counter += 2
          Loop
          Console.WriteLine("Press Enter to Continue...")
          Console.ReadLine()
      End Sub
  
      Public Enum Numbers
          Unset
          Prime
          Composite
      End Enum
  End Module
  </code></pre>