#include #include int GCD(int a,int b) { ldiv_t lx; int c; if(a==0 || b==0) return 0; if(a==b) return a; if(a<0) a= -1*a; if(b<0) b= -1*b; if(a