@@ -0,0 +1,578 @@
+/*%0A * Multiples of 3 or 5%0A * Problem 1%0A * If we list all the natural numbers below 10 that are multiples of 3 or 5,%0A * we get 3, 5, 6 and 9. The sum of these multiples is 23.%0A * Find the sum of all the multiples of 3 or 5 below 1000.%0A */%0Apublic class Problem1 %7B%0A    public static void main (String%5B%5D args) %7B%0A        int sum = 0;%0A        for(int i = 1; i %3C 1000 ; i++)%7B%0A            if(i%253==0 %7C%7C i%255==0)%7B   //if number is multiple of 3 OR 5...%0A               sum += i;            //add that number to the total sum%0A            %7D%0A        %7D%0A        System.out.println(sum);%0A    %7D%0A%7D%0A

Check in solution to problem 1 in java