Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java multiplication table nested loop

public class Main {
  public static void main(String[] args) {
    for (int y = 1; y < 12; ++y) {
      for (int x = 1; x < 12; ++x) {
        System.out.printf("%4d", y*x);
      }
      System.out.println();
    }
  }
}
 
PREVIOUS NEXT
Tagged: #java #multiplication #table #nested #loop
ADD COMMENT
Topic
Name
6+6 =