Flow controls: Loops · 25 / 26 Exercise Easy

Infinite multiplication tables

Objective

Develop a Python program that allows the user to specify a range of numbers (x, y) and, subsequently, generates and displays the multiplication tables for each number in that range, from 1 to 10.

Input
2
3
Output
2x1= 2
2x2= 4
2x3= 6
2x4= 8
2x5= 10
2x6= 12
2x7= 14
2x8= 16
2x9= 18
2x10= 20

3x1= 3
3x2= 6
3x3= 9
3x4= 12
3x5= 15
3x6= 18
3x7= 21
3x8= 24
3x9= 27
3x10= 30

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise