[Goddess' Day] Simple use of C/C++ and Python nested for loops to generate a small heart

insert image description here

foreword

The Goddess' Day is coming soon, have the friends who have a girlfriend already carefully prepared gifts! For married men, are you worried about what gift to give today? To be honest, I am also worried, do you have any recommendations, please leave a comment!

Realize analysis

You can first draw a rough heart-shaped draft on paper or Excel, and then program and draw according to the
prototype
. From the point of view and logic, it is two for nested loops, traversing rows and traversing columns, 13 columns and 14 rows
3) The columns are odd numbers ÿ

Guess you like

Origin blog.csdn.net/lmy_520/article/details/129390123