Output:
Click Here For Java Online Compiler
Solution:
*** Multiplication Table *** Enter any number for its Multiplication Table: 9 9 x 1 = 9 9 x 2 = 18 9 x 3 = 27 9 x 4 = 36 9 x 5 = 45 9 x 6 = 54 9 x 7 = 63 9 x 8 = 72 9 x 9 = 81 9 x 10 = 90
Click Here For Java Online Compiler
Solution:
import java.util.Scanner; class PrintMultiplicationTable { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("*** Multiplication Table ***" + "\n"); System.out.print("Enter any number for its Multiplication Table: "); int number = scanner.nextInt(); for (int i = 1; i <= 10; i++) { System.out.println(number + " x " + i + " = " + number * i); } } }
comment 0 comments:
more_vertsentiment_satisfied Emoticon