1422: 【c09】打印偶数等腰三角形▅嵌套for_if_else

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:11 Solved:10

Description

① 输入一个正整数n。

② 输出一个n行的偶数三角形。

③ 每个数字的输出宽度为4。

④ 三角形的中间数字为2,向两边递增2。也就是所有数字都是偶数。

Sample Input Copy

5

Sample Output Copy

                  2
               4   2   4
           6   4   2   4   6
       8   6   4   2   4   6   8
  10   8   6   4   2   4   6   8  10