Tag Archives: For

Java multplication table

This program asks for a multiplicand number and shows the multiplication table of given number. MultiplicationTable.java: import java.util.Scanner; public class MultiplicationTable { public void run() { Scanner reader = new Scanner(System.in); int multiplicand; System.out.print(“Which multiplication table would you like to see? “); multiplicand=reader.nextInt(); reader.close(); for(int i=1;i