Search:

Type: Posts; User: Mr.777

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,517

    Re: Need Help on Looping Program!! Beginner!!

    And wrap your code in code tags for better readability.
  2. Replies
    8
    Views
    1,517

    Re: Need Help on Looping Program!! Beginner!!

    while (i <= n)

    {
    if(i%n == 0)
    System.out.println(i);
    else
    i++;
    }
    Look carefully. When your program is going to else part? What is the value of i? Why doesn't it change...
Results 1 to 2 of 2