Read an integer n and print its multiplication table from 1 to 10.
Input / Output
Input: a single integer n. Output: 10 lines, each in the exact format "n x i = result" for i = 1 to 10.
Examples
Input
2
Expected Output
2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 2 x 10 = 20
+ 1 hidden test checked on Submit.
Main.java is the entry point. Add extra classes for OOP exercises — they compile together.
Run your code to see test results here.