Computer Science, asked by shamnapradeesh, 11 months ago

int s = 0; i = 0;
while(i++<5)
s+=i;

please tell how many times the loop will execute

Answers

Answered by AlamAulakh
5

Answer:

six times from i= 0to i=5 and 7th time when condition fails loop terminate

Explanation:

from i =0 because it post increment the value of i

Similar questions