How to get 0 with a variable and ++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to get 0 with a variable and ++

Variable test

23rd Nov 2019, 6:48 PM
Evergamer 00
Evergamer 00 - avatar
3 Answers
+ 2
make either the variable negative from the start or make the variable overflow so it becomes negative
23rd Nov 2019, 6:51 PM
Anton Böhler
Anton Böhler - avatar
23rd Nov 2019, 6:52 PM
Anton Böhler
Anton Böhler - avatar
+ 1
Initialize a negative variable and count it up or initialize a positive one and count it down until it is 0
23rd Nov 2019, 9:23 PM
2Beers
2Beers - avatar