# Search:

Type: Posts; User: shemer77

1. ## Thread: Trying 3 different ways to do the same thing, each one is wrong

by shemer77
Replies
14
Views
3,819

### Re: Trying 3 different ways to do the same thing, each one is wrong

I think I know what your getting at, i have an idea and ill see what I can do thanks!
2. ## Thread: Trying 3 different ways to do the same thing, each one is wrong

by shemer77
Replies
14
Views
3,819

### Re: Trying 3 different ways to do the same thing, each one is wrong

it tests true when count is divisible by all the numbers from 1-20, it tests false when its not so i change it to this it still dosent work

public class Main {

public static void...
3. ## Thread: Trying 3 different ways to do the same thing, each one is wrong

by shemer77
Replies
14
Views
3,819

### Re: Trying 3 different ways to do the same thing, each one is wrong

Sorry I dont see that, I looked up the defintion of a for statement

so my beggning is my integer, my end is when it is divisible by all those numbers,and if its not then add 1.
4. ## Thread: Trying 3 different ways to do the same thing, each one is wrong

by shemer77
Replies
14
Views
3,819

### Trying 3 different ways to do the same thing, each one is wrong

Here is what I am trying to do
What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

Here are my 3 different sets of code, the first 2 I know are...
Results 1 to 4 of 4