int getCommon(int numberA,int numberB){
if(numberA>numberB){
int t;
t=numberA;
numberA=numberB;
numberB=t;
}
if(numberB%numberA==0){
return numberA;
}
int common=1;
for(int i=2;i<=numberA;i++){
if(numberA%i==0&&numberB%i==0)
common=i;
}
return common;
}