I
In the following Java code fragment, how many times does the body of the loop execute? int s=0; for(int i=1;i<20; i*=2) { s=s+i; }
5
4
6
7
Expert Answer
An answer will be send to you shortly. . . . .
I
In the following Java code fragment, how many times does the body of the loop execute? int s=0; for(int i=1;i<20; i*=2) { s=s+i; }
5
4
6
7
An answer will be send to you shortly. . . . .