So, once again, my coding is rustier than I thought! I try to do all of it without tutorials, make the knowledge mine, blah blah. Anyways, this program is supposed to take the user's input until either they enter the number equal to the number of iterations of the loop being used or the count reaches ten.
However, the counter only goes up when I type in the number of the count. This is not right!! Help! As always, please just offer hints, not solutions. I like to learn for myself but I need a direction to search. Here's the code:
This makes absolutely no sense. Why would you refuse to learn?
As for your code, in the first iteration of the loop you're comparing count to n without giving n a value, so right now it's stuck with some garbage. I would initialize n somehow just for the sake of good practice. As for your program, I don't understand what you're trying to do. I think you're trying to have them enter numbers from 1-10, but whats to stop me from entering 9132534 every time?
Anyways, this program is supposed to take the user's input until either they enter the number equal to the number of iterations of the loop being used or the count reaches ten.
This contradicts your code! If you want them to enter the number of iterations, then why are you telling them not too, and why in your code are you looping until they enter something different?