Is there an easier way to solve this? I feel my codes are always quite complicated and long. 🤔🤔🤔🤔
public class Solution {
public static void main(String[] args) throws Exception {
//schreib hier deinen Code
int z1 = 1;
int z2 = 1;
int z3 = 10;
while (z3>0)
{
while (z2<10)
{
System.out.print(z1*z2 + " ");
z2++;
}
System.out.println(z1*z2);
z3--;
z1++;
z2 = 1;
}
}
}