[Solved] How to print M character with heart symbols in C language?


Just add the following code to the bottom. \x03 is hexadecimal code for the heart character on a US Windows console, which I assume you are using:

printf("\x03       \x03\n");
printf("\x03\x03     \x03\x03\n");
printf("\x03 \x03   \x03 \x03\n");
printf("\x03  \x03 \x03  \x03\n");
printf("\x03   \x03   \x03\n");
printf("\x03       \x03\n");
printf("\x03       \x03\n");

Output of the whole program:

♥♥♥♥♥♥♥♥♥
♥
♥
♥♥♥♥♥♥♥♥♥
        ♥
        ♥
♥♥♥♥♥♥♥♥♥

♥      ♥
♥      ♥
♥      ♥
♥      ♥
♥      ♥
♥      ♥
♥      ♥
♥      ♥
♥♥♥♥♥♥♥

♥       ♥
♥♥     ♥♥
♥ ♥   ♥ ♥
♥  ♥ ♥  ♥
♥   ♥   ♥
♥       ♥
♥       ♥

solved How to print M character with heart symbols in C language?