Hallo!
ich habe versucht diese Aufgabe zu lösen aber bekomme irgendwie den mittleren Bereich nicht gedruckt. Die erste Zeile oder Spalte funktioniert aber der Bereich mit der multiplikation läuft bei mir nicht. Hat jemand für mich eine Idee, worin mein Fehler liegt? Danke
package de.codegym.task.task04.task0434;
/*
Multiplikationstabelle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
int zahl1 = 1;
int zahl2 = 1;
while (zahl2<=10) {
while (zahl1<=10) {
System.out.print(zahl1 * zahl2 + " ");
zahl1 ++;
}
System.out.print(zahl2);
zahl2 ++;
System.out.println();
}
}
}