C Program to Fill the screen with a smiling face

How to Write a C Program to fill the entire screen with a smiling face in C Programming Language ?

The smiling face has an ASCII value 1. 

An infinite loop like the following can also do the job.
for (i=1;i<=1000;) 

  1. #include<stdio.h>
  2. main()
  3. {
  4. int i, j;
  5.  
  6. for (i=1, j=1; j<=5000; j++)
  7.  
  8. {
  9. printf("%c", i);
  10. }
  11. }

This following C Program also displays smiling face very clearly try it :

  1. #include
  2. main()
  3. {
  4. int i;
  5. for(i=0;i<=2559;i++)
  6. {
  7. printf("%c",2);
  8. }
  9. }

You can use any int instead of 2 thats just for what you want to print on screen. n char is not used because you have only integers have this smiling faces ASCII char has 66 77 like ASCII value.


Learn More :