What is the flowchart of this programme? | Sololearn: Learn to code for FREE!

+1

What is the flowchart of this programme?

I=5 while True: print (I) I-=1 if I <=2: break

3/27/2017 8:52:40 AM

Spider

3 Answers

New Answer

+8

Sorry, we can't post images here.

+6

1. prints 5 2. decreases l by 1 3. checks if l <= 2 (no, proceeds with the loop) 4. prints 4 5. decreases l by 1 6. checks if l <= 2 (no, proceeds with the loop) 7. prints 3 8. decreases l by 1 9. checks if l <= 2 (yes, breaks out of the loop) output: >>> 5 4 3

0

thank you sir