#include <stdio.h>rnrnint main() {rn char alphabet = 'A';rn int i, j;rnrn // First half of the patternrn for (i = 0; i < 5; i++) {rn for (j = 0; j <= i; j++) {rn printf("%c ", alphabet + j);rn }rn for (j = i-1; j >= 0; j--) {rn printf("%c ", alphabet + j);rn }rn printf("n");rn }rn rn // Second half of the patternrn for (i = 4; i >= 0; i--) {rn for (j = 0; j <= i; j++) {rn printf("%c ", alphabet + j);rn }rn for (j = i-1; j >= 0; j--) {rn printf("%c ", alphabet + j);rn }rn printf("n");rn }rn rn // Final rowrn printf("%c", alphabet);rn return 0;rn}