A1VBCode Forums

Print odd or even integers


http://www.a1vbcode.com/vbforums/Topic32099.aspx

By willharden96 - 11/15/2013

I have a problem I can not resolve can anyone see the problem.

a.      The following code should print whether the Integer variable’s value is odd or even:

Select (value Mod 2)

   Case 0

     lblOutput.Text = (“Even integer”)

   Case 1

     lblOutput.Text = (“Odd integer”)

Select End

By willharden96 - 11/15/2013

Thanks Zack, I will try that my first week programming and trying to understand what I am reading.