code for A Alphabet pattren in c languge

CODE for A Alphabet pattern
code:
#include<stdio.h>
#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:


  1. copy text and paste on dev++
  2. Press F11