Hi! I have a code but it doesn't do what It should :D
I would like to sum up 400, 1200, 3600, and 10800, but the "ossz" variable is always the latest value of capital. So at the end of the loop it's 3600, instead of 16.000
Thank you for your help! Have a nice day!
Code:
For h = 0 To k 'lets suppose from 1 to 4
capital = 400 * 3 ^ h
ossz = 0 + capital
Next
I would like to sum up 400, 1200, 3600, and 10800, but the "ossz" variable is always the latest value of capital. So at the end of the loop it's 3600, instead of 16.000
Thank you for your help! Have a nice day!
Last edited: