Pythagorean table
Problem
Given a number
N (N >= 2). Print the Pythagorean table for all integers in the range from
2 to
N. The
ith line of the
jth column of the Pythagorean table must contain the product
(i+1)⋅(j+1).< br />
Input
The first input line contains the number
N (2 <= N <= 100).
Imprint
Each line displays the elements of the Pythagorean table, separated by a space.
Examples
| # |
Input |
Output |
| 1 |
4 |
4 6 8
6 9 12
8 12 16
|