Dr. Patt, I have written a program that divides the larger of the two numbers by the smaller number no matter which (A or B) of the two is larger. Would this be sufficient or does the program need to be able to divide a smaller number by a larger? Thanks. <> What happens if you divide a smaller number by a flarger number? What is the quotient, and what is the remainder? Yup, your program has to be able to do that, also. Yale Patt