CODE for A Alphabet pattern
code:
#include<stdio.h>code:
#include<conio.h>
#include<stdlib.h>
int main()
{
int i,j,k,l;
system("color 02");
for(i=0;i<=11;i++)
{
for(j=10;j>=i;j--)
{
printf(" ");
}
for(k=0;k<=2;k++)
{
printf("*");
}
for(l=1;l<=i;l++)
{
if(i>4&&i<7)
{
printf("**");
}
else
{
printf(" ");//two spaces
}
}
for(k=0;k<=2;k++)
{
printf("*");
}
for(j=10;j>=i;j--)
{
printf(" ");//one space
}
printf("\n");
}
getche();
}
steps: