Search:

Type: Posts; User: Shivam24

Search: Search took 0.09 seconds.

  1. Replies
    19
    Views
    1,527

    Re: Game Program HELPPPP

    im very sorry
  2. Replies
    19
    Views
    1,527

    Re: Game Program HELPPPP

    Im sorry again.
    I messed up and posted "while (randomInt != randomInt)"
    it should be "while (number != randomInt)"
    "!=" means does not equal and that's why your program stops. a variable can never...
  3. Replies
    19
    Views
    1,527

    Re: Game Program HELPPPP

    Ok i see. I'm sorry i forgot to add a bracket so the while loop should look like this


    while (randomInt != randomInt) {
    if (number < randomInt)
    {
    c.print("The number you have guessed is too...
  4. Replies
    19
    Views
    1,527

    Re: Game Program HELPPPP

    ur welcome : )
  5. Replies
    19
    Views
    1,527

    Re: Game Program HELPPPP

    Try using a while loop instead of a for loop and change the position of your loop.
    Also in your if statements have the user enter input.
    It would look something like this


    //your code
    int...
Results 1 to 5 of 5