Computer Science, asked by beddalateja8894, 10 months ago

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 janinandini1310
0

Answer:

a)this loop will be executed 5 times

b)It is an infinite loop

Explanation:

Similar questions