# 字符图形输出

编程实现把输入任意整数n后，可打印出n行三角字符阵列图形。例如，输入整数5时，程序运行结果如下：

```json
ENTER A NUMBER：5<回车>
A  C  F  J  O
B  E  I  N
D  H  M
G  L
K
```

以下程序实现了这一功能，请你填补空白处内容：

```cpp
#include <iostream>
using namespace std;
char a[100][100];
int main()
{
    char c = 'A';
    int n = 5;
    for (int i = 0; i < n; i++)
    {
        for (int j = i; j >= 0; j--)
        {
            _______________;
        }
    }
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < n - i; j++)
        {
            cout << a[i][j] << " ";
        }
        cout << endl;
    }
}
```

## template

```cpp
#include <iostream>
using namespace std;
char a[100][100];
int main()
{
    char c = 'A';
    int n = 5;
    for (int i = 0; i < n; i++)
    {
        for (int j = i; j >= 0; j--)
        {
            a[j][i - j] = c++;
        }
    }
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < n - i; j++)
        {
            cout << a[i][j] << " ";
        }
        cout << endl;
    }
}
```

## 答案

```cpp
a[j][i - j] = c++;
```

## 选项

### A

```cpp
a[j][i] = c++;
```

### B

```cpp
a[j - 1][i - j] = c++;
```

### C

```cpp
a[j][i - 1] = c++;
```