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