public static int gcd1(int a, int b) { int gcd = 1; int max = 1; if(a