Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

program to print only even numbers between 6 and 16 using events

$
0
0
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.



Module Modulel
Public Event PrintThis(ByVal Val As Integer)

Dim number as Integer = 6
While number <= 16
// PRINT Goes here ..
number = number + 2
End While

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>