Hi!
I need to write a java program that asks the user to enter 2 numbers, x and y, and prints the remainder of x divided by y.
I know how to do this, its not the problem, my question is, how do you do it without using a java modulo operator?
I know how to write the script, im just not sure how to find a remainder of something without using mod - Only using division, multiplication and subtraction -
Thanks
2007-09-18
01:29:01
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design