Multiplication Table

Practice this coding question on Coding Gurukul.

Problem statement

A school supply shop creates a price strip showing the cost of one through ten identical notebooks. Each notebook has the same integer price. Your task For the given value n, print its multiplication table from n times 1 through n times 10. Important details Output ten products in increasing multiplier order. Include the product for multiplier ten, but do not include multiplier zero or print equation labels. If the unit price is zero, all ten products are zero. Calculate each product exactly using integer arithmetic. This is a loop exercise: the position in the output identifies the quantity purchased. Worked example For n = 3, the prices are 3 6 9 12 15 18 21 24 27 30. The last value represents ten notebooks.

Input format

One integer n.

Output format

Print ten space-separated products on one line.

Constraints

0 <= n <= 100000000.

Sample input

3

Sample output

3 6 9 12 15 18 21 24 27 30

Sign in to run or submit a solution in C++, Java or Python.