11186: 4.18(4) 使用循环语句打印图案

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

编写程序,提示用户输入一个在1到30之间的整数,然后显示一个斜倒三角形状的图案。

Input

输入一个在1到30之间的整数n

Output

显示一个n行正上三角形状的图案,每个数字之间空一格。如下面示例。

Sample Input Copy

6

Sample Output Copy

6 5 4 3 2 1 
  5 4 3 2 1 
    4 3 2 1 
      3 2 1 
        2 1 
          1 

HINT

大于9的数字占2位