print table of 1-20 java
import java.util.Scanner;
public class BasicMath14 {
public static void main(String[] args) {
for (int table = 1; table <= 20; table++) {
for (int i = 1; i <= 10; i++) {
System.out.println(table + " * " + (i) + " = " + (table * (i)));
}
System.out.println("----------");
}
}
}