//Beispiel von Seite 100

public class GGT {
   public static void main(String[] args){
      int x,y;
      x = 84;
      y = 30;
      while(x != y){
        if(x > y) 
             x = x-y;
        else y=y-x;
      }
      System.out.println("Das Ergebnis ist " + x);
    }// end of main
}// Ende der Klasse GGT
