Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
class test_Auslanderin {
public static void main(String[] args) {
int zahl1;
int zahl2;
System.out.println("Geben Sie die erste Zahl ein: ");
zahl1 = TextEingabe.readInt();
System.out.println("Geben Sie die zweite Zahl ein: ");
zahl2 = TextEingabe.readInt();
for(int i = 1; i < 7; i++) {
System.out.println(i);
}
}
}
Wenn der Wert maximal 7 sein darf ist entweder i <= 7 oder i < 8 ein gültiger Ausdruck.dabidu hat gesagt.:Code:for(int i = 1; i < 7; i++)
Zunächst mal sollte der Form halber pro Anweisung eine Zeile benutzt werden, also nicht mehrere Anweisungen in eine Zeile schreiben.abina hat gesagt.:int a; a <= 7;