problem 31(i) #include <stdio.h> int main () { int n; printf("Enter a value of n: "); scanf("%d", &n); for (int i = 0; i < n; i++) { for (int j = 0; j < n - i; j++) { printf("%c", 'A' + i); } printf("\n"); } return 0; } Copy Enter a value for n: Generate and Display Pattern