#Increment \ Decrement greater than 1 per loop
13 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @empty robin! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
I should put that where the ‘- -x;’ is¿
by the way:
usually we would put the increment/decrement here
for(int i = 0; i < x; i+=5){
//code
}
yes
as I said it is best practice to write the increment/decrement in its allocated place tho
This way other developers and yourself will not have to go looking for it 🙂
I’ll implement those tips next time coding. Thank you!
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
x+=5;
is the same as
x = x + 5;