Alphabet pattern for Y in C

Code  : Alphabet pattern Y

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

int main()
{
int i,j,count1=1,count2=10;
system("color 0e");
for(i=0;i<=11;i++)
{
      for(j=0;j<=11;j++)
      {
      if(j==count1||j==count2&&i<5)
      {
      printf("***");
  }
  else
  {
  printf("  ");
  }
  }
  if(i<=4)
{
count1++;
    count2--;
}
else if(i<=11)
{

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

Comments

  1. Very nice please visit my link also

    https://www.chapanpakwan.com/2020/05/GujratiTheplaRecipe.html

    ReplyDelete

Post a Comment

how I can help you?

Popular posts from this blog

code of Alphabet K pattern

Happy New Year 2021 Wishes

5 Ways to Earn from LinkedIn