Multiplication Table
Multiplication Table
EasyLoops20% accepted
Given a number N, print the multiplication table for N from 1 to 10. For example, if N = 3, print '3 x 1 = 3', '3 x 2 = 6', ..., '3 x 10 = 30'. This reinforces loop usage and formatted output.
Approach
Given an integer N, print N's multiplication table from 1 to 10, one per line in format 'N x i = result'.
Input
1
Output
1 x 1 = 1
1 x 2 = 2
1 x 3 = 3
1 x 4 = 4
1 x 5 = 5
1 x 6 = 6
1 x 7 = 7
1 x 8 = 8
1 x 9 = 9
1 x 10 = 10
More Loops problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards