HI,
ich habe ein kleines Problem bei mir schlägt immer "Das Programm muss eine vertikale Linie aus 10 Achten anzeigen." fehl und dies obwohl ich 10x eine 8 anzeigen lasse. Habe ich etwas übersehen?
Mfg
Steffen
package de.codegym.task.task04.task0438;
/*
Linien zeichnen
*/
public class Solution {
public static void main(String[] args) throws Exception {
//schreib hier deinen Code
int end = 10;
for(int k = 1; k <= end; k++){
//System.out.print(k + ": ");
for(int i = 1; i <= end; i++){
//System.out.print(i + ": ");
System.out.print("8");
//System.out.print("| ");
}
System.out.println("");
}
}
}