Answers for "print table of 1-20 java"

0

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("----------");

		}
	}
}
Posted by: Guest on June-15-2021

Code answers related to "print table of 1-20 java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language