Skip to content

Instantly share code, notes, and snippets.

@iqfareez
Created August 13, 2020 03:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iqfareez/97097650cc2cd15e1ed560b0495a0d17 to your computer and use it in GitHub Desktop.
Save iqfareez/97097650cc2cd15e1ed560b0495a0d17 to your computer and use it in GitHub Desktop.
Print heart / love in C ♥
#include<stdio.h>
#include<windows.h>
int main()
{
int i,j;
for (i=1; i<6; i++)
{
for (j=1; j<6; j++)
{
printf("\3 "); //change number \3 to other number for different symbols
Sleep(566);
}
printf("\n");
}
}
@iqfareez
Copy link
Author

Output:
image

You may need to use legacy console for the character to appear.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment