In fact let's just play with it.
By adding more increment and in fact even in decrement.
To see what happens let's click here to exit the ball concession and then we come back to code.
Let's just copy here.
And then put it down here so that we can iterate more and yes Let's paste ahead and let's just change
here to minus that.
When we add subtract and see whether it follows through
just like plus plus counter means I'd want to count on minus minus counter implies subtract one from
counter.
So let's compile again.
And we do not have any errors and that debug.
So let's go through and let's look at our counter variable and see what happens.
This display in decimal form.
Okay.
This random number.
So let's step 2 1 and actually we can see it's indeed incrementing.
And yes with 1 2 3 4 5 6 7 we've added 7.
And the next instruction is going to be 8 1 to us.
So with this incremented eight times and we have it here mean in eight plus zero.
Now we're going to discriminate and see Yes.
So basically that's we've already established this is how counting cars and computers and you might
wonder how come when you click here nothing happens or basically you don't see any changes because we're
not in a loop.
It's it's hit the end of the program.
We're not in a loop.
We don't have the wow 1 loop here.
We can enclose in a loop so that it would always go back to the top after it hit the bottom by just
a while one hit and put in a curly braces we can exit the tobacco and then compile it and go back to
the debugger Okay let's step through now.
And as you can see something you should take note of.
By the way look at where it starts from now.
Starting from the while loop which is branch.
Yeah.
Let's step
go back to the torque.
Yes.
Congratulations.