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 |
Comments
Post a Comment