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 =

 

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

1 Expert Approved Answer
Step: 1 Unlock

Answer The loop will be executed as long as i is less than months Lets see how i ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!