umen
01-04-2003, 06:12 PM
hello folks
i need some idea for algorithm to solve me this problem :
say i have div with height = 400px
how i getting input say the number 900000 , and the number 11
the 2 numbers are random they can be 200 and 4 or what ever ...
now i need to find every time the right number to divide the first input number ( let say 900000 ...) so it will
divide equal with the second input number ( let say here 11 ) but will be between the border of 400 .
so it have to look something like this :
9000 / x =y
y * 11 = 400
hope you got my point
thanks
i need some idea for algorithm to solve me this problem :
say i have div with height = 400px
how i getting input say the number 900000 , and the number 11
the 2 numbers are random they can be 200 and 4 or what ever ...
now i need to find every time the right number to divide the first input number ( let say 900000 ...) so it will
divide equal with the second input number ( let say here 11 ) but will be between the border of 400 .
so it have to look something like this :
9000 / x =y
y * 11 = 400
hope you got my point
thanks