diff --git a/src/c/labyrinth.c b/src/c/labyrinth.c index 2c40653..ab9038e 100644 --- a/src/c/labyrinth.c +++ b/src/c/labyrinth.c @@ -55,19 +55,21 @@ void labyrinthschritte(lab laby, int hoehe, int breite, int schritte){ int antwort = 0; - for(int i = 0; i < hoehe; i++){ - for(int j = 0; j < breite; j++){ - printf("%c ", laby[i][j]); - } - printf("\n"); - } - printf("\n"); - antwort = 14; if(antwort == schritte){ printf("Richtig, Sie brauchen %d Schritte.\n", schritte); + + for(int i = 0; i < hoehe; i++){ + for(int j = 0; j < breite; j++){ + printf("%c ", laby[i][j]); + } + printf("\n"); + } + printf("\n"); } + + } \ No newline at end of file