Ich kann nicht verstehen, warum diese beiden Codes unterschiedliche Ausgänge erzeugen.
Was ist die Differenz von y
Ausgabe: < /p>
*****
x****
xx***
xxx**
xxxx*
< /code>
Code: < /p>
for (int x = 0; x < 5; x++) {
for (int y = 1; y = x; g--) {
System.out.print("*");
}
System.out.println();
}
< /code>
Ausgabe: < /p>
xxxxx*****
xxxxx****
xxxxx***
xxxxx**
xxxxx*
[/code]
Verständnis der für Schleife in Java verstehen ⇐ Java
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Flutter: Verständnis von Dateien außerhalb von App -Verzeichnissen verstehen
by Anonymous » » in IOS - 0 Replies
- 48 Views
-
Last post by Anonymous
-
-
-
Erstellen von Funktionen (oder Lambdas) in einer Schleife (oder Verständnis)
by Anonymous » » in Python - 0 Replies
- 4 Views
-
Last post by Anonymous
-
-
-
Hallo, ich erstelle ein TicTacToe-Spiel für mich, um Java besser zu verstehen
by Anonymous » » in Java - 0 Replies
- 12 Views
-
Last post by Anonymous
-
Mobile version