Multiplication Table
InterviewTime limit1sMemory limit128 MB
Print the multiplication table for a given integer N from N*1 to N*9 in the exact required format.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Given an integer N, write a program that prints the multiplication table for N from 1 through 9, one line at a time. Each line must follow the required output format exactly.
Input
The first line contains an integer N. N is between 1 and 9, inclusive.
Output
Print the products from N * 1 through N * 9 in order. Each line has the format N * i = result.