Program 373: Alpha Pyramid 6
//Coming Soon
Output:
#include<stdio.h> main() { int i,j,left,right,k,rightcount,count,rows,alpha; printf("Enter number of rows\n"); scanf("%d",&rows); count=rows-1; left=1; right=2; for(i=1;i<=rows;i++) { for(k=1;k<=count;k++) { printf(" "); } for(j=left;j>=1;j--) { printf("%c",'Z'+'A'-(j+64)); } left++; if(i!=1) { for(j=2;j<right;j++) { printf("%c",'Z'+'A'-(j+64)); } } right++; printf("\n"); count--; } }Explanation:
//Coming Soon
Output: