[정올] Language Coder_반복제어문3_자가진단6_code553 (C)

두비니

·

2020. 4. 6. 00:31

 

#include <stdio.h>

int main() {

	int n, a=65;

	scanf("%d", &n);

	for (int i = n; i >= 1; i--) {
		for (int j = 0; j < i; j++) {
			printf("%c", a+j);
			if (j == i - 1)
				a += j+1;
		}
		printf("\n");
	}


	return 0;
}