Multiplication Table
Programs with input · Beginner · about 4 min
Read a whole number, then how many lines of its table to print (1 or more), one per line. Print each line as 7 x 1 = 7, starting from 1.
The prompts inside input() are not checked, only what you print.
Example
You type:
7 5
The program prints:
7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35
n = int(input("Number: "))
lines = int(input("How many lines? "))
# Print the table
The solution opens after your first Check.