Hello there, for making this program right I did run into many problems, but now is done. I did need to search for the condition of loops that C++ uses and I found out that FOR was the one that works works for me. Here is the link FOR LOOP.
The images of the final program:
Here is my code link to github: