Alright, I mostly got this.. except, that I'm not sure I'm using continue in the right way. And it's also not printing out 'times' if there's more than 1 count of a number. But this is what I have...
Type: Posts; User: Elyril
Alright, I mostly got this.. except, that I'm not sure I'm using continue in the right way. And it's also not printing out 'times' if there's more than 1 count of a number. But this is what I have...
Alright, so I have it mostly working now. But, now I'm trying to make it so that when I print out the concurrences, that if there was more than 1 of a number, that it would print out 'times' instead...
Is the array for storing the amount of each number then? And yes, it's a college assignment. I added and changed a couple things, but I can't test it because I'm not sure how to make it so that the...
I have no idea what the number of elements is because the user can input any amount of numbers they can want as long as they don't enter 0 which ends the input. And that <101> initialization of...
I've been reading and correct me if I'm wrong, but do I have to use an <arrayList>? Because from what I've been reading, you HAVE to initialize the array to some kind of limit. And for the <number>...
The loop terminates when the last number inputted is a 0, so that's why I put the <number != 0> in the loop.
Oh wow, I'm dumb.. Thanks! I should think a lot more... So, how would I initialize that variable since I have to use it in the for loop and also as a user input?
Hey, so I have to take user input and then count how many times each number that the user input and print each one out. For some reason, I can't even get the for loop statement to print and it's...