I am trying to understand iteration and loops and for some reason just can't grasp it. The problem I have to code is this.
Suppose you deposit $1 into an account this month, $2 into the account the second month, $4 in the third month and so on, doubling your deposit every month. Write a program that displays the first month your deposit exceeds $1,000,000.
I've started with a while loop but it's just not working. I don't even know how I'm going to count up the number of months it takes. Can someone show me the code for this please? I actually need to have this and another I will be posting by tomorrow so I will assign an "urgent number of points (500).