+ 1

What is the flowchart of this programme?

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

27th Mar 2017, 8:52 AM
Spider
Spider - avatar
3 Réponses
+ 8
Sorry, we can't post images here.
27th Mar 2017, 9:22 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 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
27th Mar 2017, 3:29 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
thank you sir
27th Mar 2017, 5:36 PM
Spider
Spider - avatar