Page not loading? Try clicking here.
Placeholder

#1341

Multiplication Table 2 1s 64MB

Problems

Write a program that receives the desired range of multiplication tables and prints the multiplication tables for that interval.

<Processing Conditions>

(1) Receive the first value and the last value of the interval.

(2) The entered interval does not necessarily require that the first input value be smaller than the last input value.
 That is, the range of the entered interval must be printed in the same increasing or decreasing order as entered.


Input

The starting range s and the ending range e of the multiplication table are given.
(s and e are integers from 2 to 9.)


Output

Print the multiplication tables between the starting range and the ending range, separating all numbers and symbols with spaces.
They must be aligned as shown in the output example.

Separate each expression with three spaces, and leave one blank line between each multiplication table.


Example

4 3
4 * 1 =  4   4 * 2 =  8   4 * 3 = 12

4 * 4 = 16 4 * 5 = 20 4 * 6 = 24
4 * 7 = 28 4 * 8 = 32 4 * 9 = 36

3 * 1 = 3 3 * 2 = 6 3 * 3 = 9
3 * 4 = 12 3 * 5 = 15 3 * 6 = 18
3 * 7 = 21 3 * 8 = 24 3 * 9 = 27


Source

JUNGOL

You must sign in to write code.