Blog Moved

This website completely moved to new domain. For latest content, visit www.programmingposts.com

Search This Blog

9 Oct 2012

C PROGRAM TO PRINT SMILING FACE


/** c program to print smiling face **/
#include<stdio.h>
main()
{
  int a=1,i;
  for(i=0;i<250;i++) //prints smiling face symbol 250 times
     printf("%c",a); //instead of this u can also write
                     //printf("%c",1);
}

output:


Explanation: Here we are just printing the ASCII symbol of 1 which looks like a smiling face. The ASCII symbol of 2 also looks similar to this   check here
c program for printing love symbol click here


1 comment: