Computer Science, asked by minotichowhan123, 10 months ago

What will be the output of the following codes :-
I=20,S=2
while(I>=10)
{
S=S+1
I=I-2
}
document.write(S)​

Answers

Answered by DaxayMakwana
1

Answer:

your answer is 8.

as loop executes 6 times so now S value is 8

Similar questions