Thread
:
Finding GCF in java
View Single Post
#
2
(
permalink
)
07-31-2007, 06:41 AM
brianhks
Senior Member
Join Date: Jul 2007
Posts: 134
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.
brianhks
View Public Profile
Send a private message to brianhks
Find all posts by brianhks