Computer Science, asked by aishwarya2942, 6 months ago

How many times loop will execute:
P=5
Q=35
while P<=Q:
P+=6

Answers

Answered by adityachaudhari804
4

Answer:

only 4 times

Explanation:

Ist loop: p=5+6=11

IInd loop: p=11+6=17

IIIrd loop: p=17+6=23

IInd loop: p=23+6=35

and then loop will terminated due to expression while(p<=q)

Similar questions