Print even numbers upto 50 (Taken from VB-Tutorial CDs ..)
Refer Collect and List positive integers also.
If found any errors while running your VB program, please note it on Comment section.
Refer Collect and List positive integers also.
(A)Program Design :
(B) Property(Controls Used) :
- One Command Button with Caption Print and Name Command1
(C) Attaching Code to the Object :
Private Sub Command1_Click() Dim counter As Integer counter = 0 While counter < 50 counter = counter + 2 Print counter Wend End Sub |
(D) Output :
(E) Errors :
====================================================================
No comments:
Post a Comment