235k views
2 votes
How many times will the while loop that follows be executed? var months = 5; var i = 1; while (i < months) { futureValue = futureValue * (1 + monthlyInterestRate); i = i+1; }

a. 5
b. 4
c. 6
d. 0

User Pandelis
by
4.8k points

1 Answer

1 vote

Answer:

I believe it is A

Step-by-step explanation:

User Frankieta
by
4.5k points