Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ALPHABET PATTERN_2

A C program to print the following pattern:
E
DE
CDE
BCDE
ABCDE


main()
{
int i,j,n;
printf("Enter the number of rows:");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=i;j<=n;j++)
{
printf("%c",'A'+j-i);
}
printf("\n");
}
getch();
}


This post first appeared on Programming With C And C++, please read the originial post: here

Share the post

ALPHABET PATTERN_2

×

Subscribe to Programming With C And C++

Get updates delivered right to your inbox!

Thank you for your subscription

×