How did you find that one then?
Well, let's have Varg, because not now, there are two ways of solving this.
This is the first way.
Obviously, while Jay is less than four, we're going to do something to Jay.
We are going to print.
Four minus Jay, because four minus zero is four, four, minus one is three, etc., then.
We're going to add one to Jay as we go.
Now, if we play that, we should get our magical.
Down at the bottom here for three to one, because I've effectively reversed it by putting subtraction
into it, the other way we could do this is Vijay is equal to four.
And then we can say, well, Jay is greater than zero.
We're going to print Jay.
And we're going to subtract one from Jay.
And again, we get exactly the same result for three to one.
So those are the two ways of doing it.
Which one do I prefer?
Not sure.
Down to preference, I think.
My first preference is don't use the while loop.
In fact, what I do, if I have to use it is do this is exit condition.
Foolproof.
I always write something like that near my while loop because I need a reminder that this is a dangerous
game that we're playing.
I'd advise that you do the same or just use a for loop.