Search:

Type: Posts; User: MyNamesMatt

Search: Search took 0.29 seconds.

  1. Re: A For loop that calculates every possible outcome for 2 AND 3 chars...

    Since it is supposed to be like a slot machine, it is supposed to display 3 characters, even if 2 are inputted, such as;

    Input = @ and #

    @@@
    @@#
    @#@
    @##
    ###
    ##@
  2. Re: Something wrong with my nested loops? Please help.

    Thanks curmudgeon, I nested the if blocks, (PROPERLY THIS TIME AROUND >.< ) and it ran smoothly.

    Thanks for your input I guess I didn't do it properly the first time, but persistence pays off.
    ...
  3. A For loop that calculates every possible outcome for 2 AND 3 chars...

    Hi there,

    I'm having some trouble with an assignment.

    I'm having a slight problem creating a nested for loop that displays every possible combination for random input. It's supposed to be like...
  4. Re: Something wrong with my nested loops? Please help.

    Oh, I guess I didn't say why it wasn't working. LOL my apoligies.

    The problem is, when it checks if it is the input is an INT or a String, if it is an Int, it works fine.

    If the input is NOT an...
  5. Re: Something wrong with my nested loops? Please help.

    Sorry, I was trying to nest them, but when I did that the same problem occurred so I took the brackets out to simplify it for myself.

    In the assignment there is a hint;

    "This can be done using...
  6. Something wrong with my nested loops? Please help.

    Hi there,

    I'm new here, and i'm just starting computer science in University. I did well on my first assignment without any help but now I'm getting pretty stumped. The program is supposed to ask...
Results 1 to 6 of 6