insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Multiplication Table

Multiplication Table

Difficulty: Easy

Phase: 2 · Looping and Patterns

XP Reward: 10 XP

Topics: Looping and Patterns, Easy

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Take integer N and print its multiplication table from N x 1 to N x 10 in format 'N x i = Result'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

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

Explanation: Sample execution for input 5