java multiplication table nested loop

Solutions on MaxInterview for java multiplication table nested loop by the best coders in the world

showing results for - "java multiplication table nested loop"
Debora
27 Jul 2019
1public class Main {
2  public static void main(String[] args) {
3    for (int y = 1; y < 12; ++y) {
4      for (int x = 1; x < 12; ++x) {
5        System.out.printf("%4d", y*x);
6      }
7      System.out.println();
8    }
9  }
10}