public class Solution {
public static void main(String[] args) throws Exception {
int i = 1;
//int j = 1; Output just one line: 1 2 3 4 5 6 7 8 9 10
while (i < 11) {
//int j = 1;
while (j < 11) {
System.out.print(i * j + " ");
j++;
}
System.out.println();
i++;
}
}
}
package com.codegym.task.task04.task0434;
/*
Multiplication table
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
int i = 1;
int j = 1;
while (i < 11) {
//int j = 1;
while (j < 11) {
System.out.print(i * j + " ");
j++;
}
System.out.println();
i++;
}
}
}