How many times is the following loop executed?
i = 1 while i 0 and 1:
print “ Hello ...”
i = 2 * i
Answers
Answered by
1
Answer:
Loop executed is 2
Explanation:
as the integer is 2*1
Answered by
0
Answer:
follow me
loop will execute total 5 times. In which 4 times loop condition is true and last time when I=4 loop value is false so it will terminate. It will run 4 times but it will go to for loop for checking the condition and when the condition is turned false then it will exit the loop..
Similar questions