0

Why the output is 65?? not 55?? please explain

current = 1 total = 0 while current <= 10: current += 1 total += current print(total)

14th May 2020, 6:28 PM
Lucky Nayak
Lucky Nayak - avatar
4 Respostas
+ 1
It never reaches 55 as I already explained before it's 54 ,now current is 10 so it checks while current<=10 which is true So current=current+1 =10+1 =11 Total=54+11 =65
14th May 2020, 6:30 PM
Abhay
Abhay - avatar
+ 1
Thanks now you made the things clear!! can i get your whatsapp or insta id?? i need someone to guide me!! Btw thanks abhay!!
14th May 2020, 6:33 PM
Lucky Nayak
Lucky Nayak - avatar
+ 1
Wlc ,I can't give ,if you have any questions you can ask here ,many ppl can look at the problem and solve your queries :-)
14th May 2020, 6:35 PM
Abhay
Abhay - avatar
0
umm😥 fyn
14th May 2020, 6:37 PM
Lucky Nayak
Lucky Nayak - avatar