Thursday, August 23, 2012

Fill the screen with Smiley Face Icon

Q. Write a C program to fill the display screen with smiley.
(C funny program)

Hint: ASCII value of Smiley Icon is 1.

Ans.

/*c program to fill all the screen to smiley icon*/
#include<stdio.h>
#include<conio.h>
int main()
{
 int x,y;
 for(x=1, y=1; y<=1000; y++)
   printf("%2c",x);
 getch();
 return 0;
}

/************Output************/


Output of fill all screen to smiley icon C program
Screen shot for C funny program to
fill all screen with smiley 
Related Program:

  1. Print all ASCII table C program

No comments:

Post a Comment