View Single Post
  #1 (permalink)  
Old 07-31-2007, 04:39 AM
lenny lenny is offline
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
Finding GCF in java
Hi, I'm doing a project with Java, and I need to find the GCF of a fraction. I really don't know how to do this, and would like a code to basically reduce the fraction. Like 12 over 6. The GCF is 6, and the fraction is reduced to 2 over 1.

I am using J builder, not sure if it would make a difference
Thanks.
Reply With Quote
Sponsored Links