I think I know what your getting at, i have an idea and ill see what I can do thanks!
Type: Posts; User: shemer77
I think I know what your getting at, i have an idea and ill see what I can do thanks!
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...
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.
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...