Question: How many times will the loop be executed? int i=1, months = 5; while (i < months) 1 futureValue = futureValue (1 + monthlyInterestRate);

How many times will the loop be executed? int i=1, months = 5; while (i < months) 1 futureValue = futureValue (1 + monthlyInterestRate); i=i+1; }
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
Answer The loop will be executed as long as i is less than months Lets see how i ... View full answer
Get step-by-step solutions from verified subject matter experts
