How many times will the following loop be executed ?
a) int s = 0, i = 0;
while ( i + + < 5)
s + = i;
b) int s = 0 ; i = 0;
do
s + = i ;
while ( i < 5 ) ;
Answers
Answered by
0
Answer:
a)this loop will be executed 5 times
b)It is an infinite loop
Explanation:
Similar questions