Advertisements
Advertisements
Question
How many times are the following loop executed?
i=2
while (i<=25)
print iVery Short Answer
Advertisements
Solution
Since the value of i is never changed, i always remains 2 and the condition i <= 25 is always true.
Infinite times (Infinite loop)
shaalaa.com
Is there an error in this question or solution?
