Tuesday, August 13, 2019

Alphabet pattern 11

Alphabet pattern 11:


alphabet pattern in cprograms.

 
       A
    BBB
   CCCCC
  DDDDDDD
 EEEEEEEEE

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

void main()
{
int i,j,k,l=1;
clrscr();
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
printf("0");
}
for(k=1;k<=2*i-1;k++)
{
printf("%c",j+65);
}
l=l+2;
printf("\n");
}
getch();
}


EmoticonEmoticon