Private Sub btnYears_Click ( . . . ) Handles btnYears.Click
Compute years required to become a millionnaire
Dim balance as Double, numYears as Integer
balance = CDb1 (txtAmount.text)
Do While Balance < 1000000
balance += 0.06*balance
numYears +=1
Loop
txtWhen.Text = 'In "& numYears & " years you will have a mllion dollars."
更新1:
What does numYears +=1 mean? How does the program calculate the years to become a million dollars? Does the program recognise the variable numYears by its meaning? Thanks