int s = 0; i = 0;
while(i++<5)
s+=i;
please tell how many times the loop will execute
Answers
Answered by
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