Search:

Type: Posts; User: Elyril

Search: Search took 0.11 seconds.

  1. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    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...
  2. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    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...
  3. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    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...
  4. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    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...
  5. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    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>...
  6. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    The loop terminates when the last number inputted is a 0, so that's why I put the <number != 0> in the loop.
  7. Replies
    17
    Views
    1,618

    [SOLVED] Re: Counting input array

    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?
  8. Replies
    17
    Views
    1,618

    [SOLVED] Counting input array

    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...
Results 1 to 8 of 8