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...
Type: Posts; User: AlexHail
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...
Post your progress and I will be able to assist you, but we must locate the problem.
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...