Search:

Type: Posts; User: samy109

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,412

    Re: Dividing inside a for loop. Lolwtf?

    This is my code:


    package sumsof3sand5s;

    public class app {
    public static int a;
    public static int x;
    public static int b;
    public static int c;
  2. Replies
    6
    Views
    1,412

    Re: Dividing inside a for loop. Lolwtf?

    Thanks a bunch. Now my next question, i'm asking this because i'm doing the project euler first problem, and I am COMPLETLY mind boggled at the awnser. It asks what is the sum of the multiples of 3...
  3. Replies
    6
    Views
    1,412

    Dividing inside a for loop. Lolwtf?

    I have a for loop which looks like so: for(int x = 0; x<=1000; x++){ System.out.println(x/3); }

    Now for some insanely strange reason, when I run the code, it repeats the awnsers however many...
Results 1 to 3 of 3