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
1
Answer:
your answer is 8.
as loop executes 6 times so now S value is 8
Similar questions