0

I need help on increments it is not working like how i think its supposed to

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

19th May 2022, 8:03 AM
Eli
Eli - avatar
3 Antworten
0
I think you're mixing up pre-increment (++x) and post-increment (x++). y = ++x does the same as x = x+1 y = x y = x++ does the same as y = x x = x+1
19th May 2022, 8:32 AM
Simon Sauter
Simon Sauter - avatar
0
Thanks but do you mean that ++x is the same as x++ because it gives the same thing? From what you have written
19th May 2022, 8:38 AM
Eli
Eli - avatar
0
Thanks i get it now
19th May 2022, 8:44 AM
Eli
Eli - avatar