how to make Alphabet B pattren in c languge||abcd alphabet pattern


                                           CODE:

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

int main()
{
int i,j,k;
system("color 03");
for(i=0;i<=11;i++)
{
for(j=0;j<=2;j++)
{
printf("*");
}
for(k=1;k<=5;k++)
{
if(i>=0&&i<2||i>4&&i<7||i>9&&i<=11)
{
printf("**");
}
else
{
printf("  ");//two spaces
}
}
for(j=0;j<=2;j++)
{
if(i>=0&&i<2||i>4&&i<7||i>9&&i<=11)
{
printf(" ");//one spsce
}
else
{
printf("*");
}
}
printf("\n");
}
getche();

}


steps:


  1. copy txt and paste on dev++
  2. press F11