• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Visual Basic Gurus! Simple question...

novon

Diamond Member
Someone decides to invest $1000 per year at 7% annual return, how long before she has $1000000?

I need a simple prog that calcs this and prints the years it took on screen...

anyone?

I'm brand new to programming....

here is what i have so far, and it's not working:

For t = 0 To 1000#
a = a + 1000
a = a * 1.07
years = years + 1
If a = 1000000 Then GoTo done Else
Next t

done:
Print years


Thanks
 
Back
Top