Multiplication table P31170


Statement
 

pdf   zip

thehtml

Write a program that reads a number n and prints the “multiplication table” of n.

Input

Input consists of a natural number n between 1 and 9.

Output

Print the “multiplication table” of n.

Public test cases
  • Input

    2
    

    Output

    2*1 = 2
    2*2 = 4
    2*3 = 6
    2*4 = 8
    2*5 = 10
    2*6 = 12
    2*7 = 14
    2*8 = 16
    2*9 = 18
    2*10 = 20
    
  • Input

    7
    

    Output

    7*1 = 7
    7*2 = 14
    7*3 = 21
    7*4 = 28
    7*5 = 35
    7*6 = 42
    7*7 = 49
    7*8 = 56
    7*9 = 63
    7*10 = 70
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Salvador Roura
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java PHP Python Rust