Flow controls: Loops · 10 / 26 Exercise Easy

Multiplication table

Objective

Write a program in Python that asks the user for a number x and shows the result of his multiplication table from 1 to 10.

Input
5
Output
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50

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

Start exercise