Need help getting a program to loop

Robin2:
@cgsmith324, did you study Reply #4?

...R

I did. I tried that. But I don't really have any knowledge of this language. Basically, the thing that would help me the most is one of y'all plugging your solution into the code, and then putting the entire code in here so I can copy and paste. I know that's probably asking too much. I'm sure a lot of these replies would fix my issue, but I have upload errors because I just don't know where to put the snippets of code y'all are giving me.