MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / getGCD

Method getGCD

FractionAdditionSubstraction.java:40–43  ·  view source on GitHub ↗
(int a, int b)

Source from the content-addressed store, hash-verified

38 return num + "/" + den;
39 }
40 public int getGCD(int a, int b){
41 if(a==0) return b;
42 return getGCD(b%a,a);
43 }
44}

Callers 1

fractionAdditionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected