列表

详情


NC25047. [USACO 2007 Jan L]Multiplication Table

描述

Poor Bessie simply can't remember her multiplication tables. Please help her by creating a 'times' table in exactly this format. For this table, N=11:

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

原站题解

上次编辑到这里,代码来自缓存 点击恢复默认模板

上一题