-
Programing problem
I am having trouble deriving the loop for this java problem. I need to find the smallest integers for a number inputed by the user. So for example the smallest integers for 100 are 2, 2, 5, 5. I know i need to increment the divisible number in the loop but I'm not sure how to exactly put that in or what loop to use. Any help would be appreciated.
-
This isn't the Java forum --- it's 'C', even though the statements would be the same. So you're going to run a loop from 1 to 100 and test to see if that number in that loop is evenly divisible in 100 using an operator (same as in Java). In 'C', it's a 'for loop'.
This pretty basic stuff. Read a tutorial on 'C' - then you won't be embarrassed when asking a question like this
-
I think you're asking to find prime factors.