邱松浩.c

mail@pastecode.io avatar
unknown
plain_text
a month ago
356 B
4
Indexable
Never
#include <stdio.h>

int main ()
{
    int row;
    scanf("%d", &row);
    int tmp = row;
    for(int i = 0; i < row; i++){
        for(int j = 1; j < tmp; j++){
            printf("  ");
        }
        tmp--;
        for(int k = 0; k <= i; k++){
            printf("%c ", 'A' + k);
        }
        printf("\n");
    }
    return 0;
}
Leave a Comment