alphabet pattern 5

Alphabet Right angle triangle program in C




#include<stdio.h>
#include<conio.h>
void main()
{
char i,j;

for(i='A';i<='E';i++)
{
for(j='A';j<=i;j++)
{
printf("%c",i);
}
printf("\n");
}
getch();
}

No comments:

Post a Comment