+ 1

Can any one please explain me why it is in infinite loop ,,, but when i put i++ Instead of i+1 it doesn't go in infinite loop

https://code.sololearn.com/cA0H9WRIWKjj/?ref=app

12th Aug 2020, 2:05 PM
Ashutosh Singh
Ashutosh Singh - avatar
2 odpowiedzi
+ 3
Try i += 1 i + 1 will not change the value of i
12th Aug 2020, 2:07 PM
Namit Jain
Namit Jain - avatar
+ 2
Ohhh I got it... thanks "Namit" very much ❤️❤️
12th Aug 2020, 2:09 PM
Ashutosh Singh
Ashutosh Singh - avatar