/*
Rätsel-Hauptprogramm
*/
public class raetselMain {
public static void main (String[] args)
{
int Zahl1, Zahl2, Zahl3;
String Ende = "J";
while ( Ende.equals("J") || Ende.equals("j"))
{
System.out.println("Gib drei Zahlen ein: ");
System.out.print("1. Zahl => ");
Zahl1 = SimpleEingabe.readInt();
System.out.print("2. Zahl => ");
Zahl2 = SimpleEingabe.readInt();
System.out.print("3. Zahl => ");
Zahl3 = SimpleEingabe.readInt();
System.out.println("Zahlen => " + Zahl1 + " " + Zahl2 + " " + Zahl3);
raetsel rt = new raetsel();
System.out.println("Ergebnis => " + rt.rechne(Zahl1,Zahl2,Zahl3));
System.out.print("Nochmal? (J/N) ");
Ende = SimpleEingabe.readLine();
}
System.out.println("Ciao . . . ");
} // eof main
} // eof class raetselMain