Computer Science, asked by pphuk, 4 months ago

15. How many times is the following, loop enecuted ?
int s = 0,1 = 0;
while (+ + <5)​

Answers

Answered by Anonymous
17

Explanation:

Loop executed

int s = 0, i = 0;

while ( ++ <5 )

s +  = i \\ 5 \: times \\

i ++ means increasment so the value will start for 0,

value of i= 0

Answered by khushi26323
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