+ 1
Logic
x = 1 while (x<=5): x+=x print (x)
6 Answers
0
AMAN TOMAR Because x will have following values (every line represent x value at start and at end of any iteration starting from first):
at start:1 at end:2
at start:2 at end:4
at start:4 at end:8
because 8 is not <=5, no more iterations happen then x value is 8 after while
+ 3
why the ans is not 10
+ 3
thanks a ton KrOW
+ 2
Jay Matthews please help me with the logic
+ 1
đđđ
+ 1
8