Search:

Type: Posts; User: AlexHail

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    1,427

    Re: Dividing inside a for loop. Lolwtf?

    You must compensate for those numbers that are counted twice.

    Ex. 30 is a multiple of 3, and 5. So when determining if the iteration is a multiple of either 3 or 5, it will add that number to the...
  2. Replies
    6
    Views
    1,427

    Re: Dividing inside a for loop. Lolwtf?

    Post your progress and I will be able to assist you, but we must locate the problem.
  3. Replies
    6
    Views
    1,427

    Re: Dividing inside a for loop. Lolwtf?

    for(int x = 0; x <= 1000; x++) {
    System.out.println(x/3);
    }

    Sorry your code is much easier to read this way. Helloworld hit the nail on the head.

    But in more detailed wording, because...
Results 1 to 3 of 4