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************/
Related Program:
(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************/
Screen shot for C funny program to fill all screen with smiley |
on ubuntu with gcc compiler, smiling face looks totally different.
ReplyDeleteCool
ReplyDeleteReally Cool XD
ReplyDeleteNYC
ReplyDeleteNice one...!
ReplyDeleteNice....!
ReplyDeletesuperb...
ReplyDelete