0: public static int ggt( int x, int y ) { 1: while ( x != y ) { 2: if ( x > y ) { 3: x = x - y; } else { 4: y = y - x; } 5: } 6: return x; }