public int METHOD_1 ( int a , int b ) { if ( a == 0 ) return b ; while ( b != 0 ) { if ( a > b ) a = a - b ; else b = b - a ; } return a ; }

public int METHOD_1 ( int a , int b ) { if ( a < 0 ) { a = - a ; } if ( b < 0 ) { b = - b ; } if ( a == 0 ) return b ; while ( b != 0 ) { if ( a > b ) a = a - b ; else b = b - a ; } return a ; }
