MULTIPLICATION_TABLE = new int[10][10];
int y = 1;
for(int j = 0;j <10;j++)
{
int x = 1;
for (int i = 0;i <10;i++)
{
MULTIPLICATION_TABLE[ i ][ j ] = x*y;
x++;
if( MULTIPLICATION_TABLE[ i ][ j ] >9)
System.out.print(MULTIPLICATION_TABLE[ i ][ j ] + " ");
else{
System.out.print(" "+MULTIPLICATION_TABLE[ i ][ j ]+" ");
}
}
System.out.println();
y++;
}}
package com.javarush.task.pro.task05.task0509;
/*
Таблица умножения
*/
public class Solution {
public static int[][] MULTIPLICATION_TABLE;
public static void main(String[] args) {
//напишите тут ваш код
MULTIPLICATION_TABLE = new int[10][10];
int y = 1;
for(int j = 0;j <10;j++)
{
int x = 1;
for (int i = 0;i <10;i++)
{
MULTIPLICATION_TABLE[ i ][ j ] = x*y;
x++;
if( MULTIPLICATION_TABLE[ i ][ j ] >9)
System.out.print(MULTIPLICATION_TABLE[ i ][ j ] + " ");
else{
System.out.print(" "+MULTIPLICATION_TABLE[ i ][ j ]+" ");
}
}
System.out.println();
y++;
}}
}