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 LOVE SYMBOL


/** C PROGRAM TO PRINT LOVE SYMBOL **/
#include<stdio.h>
main()
{
  int a=3,i;
  for(i=0;i<250;i++) //prints love symbol 250 times
     printf("%c",a);
}

Explanation : most of the c learners shock by seeing this.Actually here we are printing the ASCII value of 3 . Which gives a love symbol. 
you can also print directly by writhing the following code.

printf(" %c ",3);

for c to print smiling face click here

Output:


For C# Program: c# program to print love symbol



3 comments:

  1. nice,, also can visit on my blog.
    http://gauravsiwach.blogspot.in/2014/01/c-program-for-print-i-love-you.html
    thanx

    ReplyDelete
  2. How to print in c++? I am stuck with a problem.

    ReplyDelete
  3. Excellent read, Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. c programming cheat sheet

    ReplyDelete