I must use events in this program and it must print out even numbers. This is all I have. I am new to this and I have searched the internet for hours, I need help. Not sure if I am headed in the right direction and I know this looks bad. Thank you.
Public Event PrintThis(ByVal Val As Integer)
Dim number as Integer = 6
While number <= 16
// PRINT Goes here ..
number = number + 2
1 Replies - 422 Views - Last Post: 20 January 2013 - 08:05 PM
Replies To: program to print only even numbers between 6 and 16 using events
Re: program to print only even numbers between 6 and 16 using events
Posted 20 January 2013 - 08:05 PM
Searched for hours.. for what? You can quickly determine odd or even by using the modulus (or 'mod') and 2... so that would be a solid 'if' condition... and inside the condition you would have your print.. to console.. or 'write line' to the console.
Page 1 of 1