This article is a continuation of this last post:
The difference is I used a while in this program. The syntax of the for and while loops and different in terms of the codes used but the concept of a block with a starting value, ending value, and a process of increase and decrease are the same.
Here is my code.
Thank you for reading this post.