15. How many times is the following, loop enecuted ?
int s = 0,1 = 0;
while (+ + <5)
Answers
Answered by
17
Explanation:
Loop executed
int s = 0, i = 0;
while ( ++ <5 )
i ++ means increasment so the value will start for 0,
value of i= 0
Answered by
3
Answer:
Loop executed
int s = 0, i = 0;
while ( ++ <5 )
\begin{gathered}s + = i \\ 5 \: times \\ \end{gathered}
s+=i
5times
i ++ means increasment so the value will start for 0,
value of i= 0
Explanation:
hope it helps you
Similar questions