View Single Post
  #2 (permalink)  
Old 07-31-2007, 06:41 AM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
Start with the number that is the smallest (numerator or denominator) and then count down trying each one to see if they can divide evenly into both. The way to tell is to use the mod operator '%' and see if the answer is zero.
Reply With Quote