yes it execute and compile but...
I still need to make a new function which is Simplify(), wherein it will give the lowest term of the numerator and the denominator. I already got the GCD, so how...
Type: Posts; User: thisbeme
yes it execute and compile but...
I still need to make a new function which is Simplify(), wherein it will give the lowest term of the numerator and the denominator. I already got the GCD, so how...
im sorry i was to lazy to search about it. well anyways thanks about that euclid's algorith thing, i tried to search it and somehow i got how it works. thanks again.
but i still have a problem...
public class RectangleDos{
public static int num;
public static int den;
public double val;
public void display(){
System.out.println("FRACTION: " + num + "/" + den);
}