NC25047. [USACO 2007 Jan L]Multiplication Table
描述
Subsequent columns are four digits wide
Headers on first row and first column
The '*' reminds Bessie this is a multiplication table
Write a program to reproduce tables like this where 4 <= N <= 40.
输入描述
Line 1 : A single integer, N
输出描述
Lines 1..N+1: A table as described above.
示例1
输入:
4
输出:
* 1 2 3 4 1 1 2 3 4 2 2 4 6 8 3 3 6 9 12 4 4 8 12 16