C PROGRAM TO PRINT LOVE SYMBOL
/** C PROGRAM TO PRINT LOVE SYMBOL **/
1 2 3 4 5 6 7 |
#include<stdio.h> main() { int a=3,i; for(i=0;i<250;i++) //prints love symbol 250 times printf("%c",a); } |
Explanation : Here we are printing the ASCII value of 3 . Which gives a love shape symbol.
you can also print directly by writhing the following code.
printf(” %c “,3);
Output: