PDA

View Full Version : Help with loops


jaylee72
12-18-2017, 10:29 PM
Frustrated with the latest assignment. I feel like I'm missing something so simple. The goal is ask the user for a number, use the number to spin the object around that many times - then ask user if they want to run again.

I'm asking them for a yes/no answer. My answer variable is in my loop and this is where the problem is. If they say yes, I'm hopping over to my iceskater.method which asks how many and does the turning action. I kept this as a separate method so I could call it if user answers yes. Works mostly fine whether answer is yes/no but if answer is yes, then no, the loop returns it back to the iceskater.method. What am I missing?

jaylee72
12-20-2017, 12:03 PM
Figured it out. It WAS so simple. I feel silly but learned from it and figured it out!