← all problems

printTimesTable 🌶️

Write a method printTimesTable that takes an int n and prints the first ten lines of its times table, one line for each multiplier from 1 to 10, in this form:

3 x 1 = 33 x 2 = 6...3 x 10 = 30


Print exactly this, and nothing else.