Why is increment and decrement important? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is increment and decrement important?

It just adds 1 to a value.

4th Dec 2016, 4:40 PM
Hakeem Thomas
Hakeem Thomas - avatar
1 Answer
0
You can use increment and decrement in loops to ensure it stops at one point instead of going on infinitely.
4th Dec 2016, 5:22 PM
Ash Ketchum
Ash Ketchum - avatar