What's the printed out by the below code
Count = 25
while (Count < 50):
print (Count + 1)
Count = Count + 3
Output:
26
29
32
35
38
41
44
47
50
As the initial value of Count=25, so the while condition is true
then print(Count+1), print(25+1), so for the first iteration the
output is 26, then the value of Count will increase by 3 and
becomes 29.
Similarly, for other iterations, the value of Count will be
increased by 3 and print 29, 32, 35, 38, 41, 44, 47, 50 as the
value of Count becomes 50 the control will come out from while
loop.
so the final output is
26
29
32
35
38
41
44
47
50
Program & Output:
Get Answers For Free
Most questions answered within 1 hours.