Z) 02.08 Schleifen
Lösung zur Übung 02.08 Schleifen.
1.)
for (int i = 0; i < 7; i++) { for (int j = i; j < 6; j++) { System.out.print(" "); } for (int j = i; j > -1; j--){ System.out.print("*"); } System.out.println(); }
2.)
for (int i = 0; i < 7; i++) { for (int j = i; j < 6; j++) { System.out.print(" "); } for (int j = i; j > -1; j--){ System.out.print("*"); } for (int j = i; j > 0; j--) { System.out.print("*"); } System.out.println(); }