@RobotScorpion/

Java Multiplication Tables

Java

A simple times table printed using for loops.

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
class Main {
  public static void main(String[] args) {
    for (int start=1; start<13; start++) {
      for (int next=1; next<13; next++) {
        System.out.println(start * next);
      }
      
      start += 1;
      System.out.println("");
    }
  }
}