C program for character/alphabet pattern 10
This program is to print a character/alphabet pattern 10 in C.
E F G H I
D E F G
C D E
B C
A
If you need a dry run of the program or any other query, then kindly leave a comment in the comment box or mail me, I would be more than happy to help you.
Program
#include<stdio.h> void main() { int i,j,k,n; printf("Enter the no of lines\n"); scanf("%d",&n); for(i=n;i>=1;i--) { k = i; for(j=1;j<=i;j++,k++) { printf("%c",(char)(k+64)); } printf("\n"); } }