Hello everyone :)
Do you see, why my solution is not accepted?
I created a multiplication table with the help of a nested for loop and filled the 2D array with it.
The output is a 10 × 10 multiplication table, separated by a space.
Thank you for your time.
package en.codegym.task.pro.task05.task0509;
/*
Multiplication table
*/
public class Solution {
public static int[][] MULTIPLICATION_TABLE;
public static void main(String[] args) {
//write your code here
int[][] MULTIPLICATION_TABLE = new int[10][10];
for (int i = 1; i < MULTIPLICATION_TABLE.length; i++) {
for (int j = 1; j < MULTIPLICATION_TABLE[i].length; j++) {
int multiplication = i * j;
MULTIPLICATION_TABLE[i][j] = multiplication;
System.out.print(MULTIPLICATION_TABLE[i][j] + " ");
}
System.out.println();
}
System.out.println();
}
}