Thursday, August 8, 2019

Alphabet pattern 9

Alphabet pattern 9:

alphabet patterns in cprograms.



AAAAA
BBBB
CCC
DD
A

#include<stdio.h>
#include<conio.h>

void main()
{
char i,j;
clrscr();
for(i=0;i<=4;i++)
{
for(j=4;j>=i;j--)
{
printf("%c",i+65);
}
printf("\n");
}
getch();
}


EmoticonEmoticon