alphabet pattern of j

code:

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

int main()
{
int i,j;
system("color 0A");
for(i=0;i<=11;i++)
{
for(j=0;j<6;j++)
        {
      if(i>=0&&i<2||i>=2&&i<=9&&j==3||i>=7&&i<=9&&j==0||i>9&&i<=11&&j<=3)
      {
      printf("***");
  }
  else
  {
  printf("   ");//three spaces
  }
 
        }  

     printf("\n");
}
getche();
}

by awc services

Contact Form

Send