New course! Every coder should learn Generative AI!
Try a free lesson- 2
What code used for decrement
(-)
2 Answers
+ 2
int i = 20
while(i > 0){
// your code
i--;
}
+ 1
x--, more info here http://stackoverflow.com/questions/1812990/incrementing-in-c-when-to-use-x-or-x