Question: How many iterations doest the loop execute before i becomes greater than 2 0 ? int i = 5 ; int iterations = 0 ;

How many iterations doest the loop execute before i becomes greater than 20?
int i=5;
int iterations =0;
while (i20)i+=5; iterations++;
20
5
25
4
 How many iterations doest the loop execute before i becomes greater

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!