Joke Collection Website - Talk about mood - How to write a C language program with a heart-shaped pattern with' *', please talk about the writing steps and algorithm principle in detail.

How to write a C language program with a heart-shaped pattern with' *', please talk about the writing steps and algorithm principle in detail.

# include & ltstdio.h & gt

int t;

Character label [] = {

0, 1,0,0,0, 1,0,

1,0, 1,0, 1,0, 1,

1,0,0, 1,0,0, 1,

1,0,0,0,0,0, 1,

0, 1,0,0,0, 1,0,

0,0, 1,0, 1,0,0,

0,0,0, 1,0,0,0,

};

void main()

{

for(t = 0; t & lt49; t++)

{

If (t%7==0)

printf(" \ n ");

if(tab[t]==0)

printf(" ");

other

printf(" * ");

}

}