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(" * ");
}
}
- Previous article:I am not important to you.
- Next article:2021 I haven’t posted a sentence on Moments for a long time
- Related articles
- Behind the prosperity of Buddhism, talk about the cultural history of Buddhism in Ming Dynasty.
- Especially the classic positive energy suitable for friends circle.
- The long space of sadness. Don't think that if you don't see each other often, your feelings will fade.
- You can understand Scorpio in a few words.
You can understand Scorpio in a few words.
1. Scorpio can be said to be very stubborn. When dealing with Scorpio, you must not take tough measure
- Talk to girls who like the opposing team.
- How to open an account if I want to buy U.S. stocks? What is the most convenient way to open an account?
- Can I change my major after the self-study exam? Are the previous grades still valid after changing majors?
- Baking soda white vinegar decontamination principle
- Cherish health and talk about feelings.
- It is said that when getting married, a man's best dowry is lifelong accommodation. What do you think is the best dowry for a woman?