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();
}
Very nice please visit my link also
ReplyDeletehttps://www.chapanpakwan.com/2020/05/GujratiTheplaRecipe.html