Fill the screen with a smiling face
Write a program to fill the entire screen with a smiling face.
The smiling face has an ASCII value 1.
Other ideas..
An infinite loop like the following can also do the job.
for (i=1;i<=1000;)
The smiling face has an ASCII value 1.
Other ideas..
An infinite loop like the following can also do the job.
for (i=1;i<=1000;)
#include<stdio.h>
main()
{
int i, j;
for (i=1, j=1; j<=5000; j++)
{
printf("%c", i);
}
}
Comments
#include
main()
{
int i;
for(i=0;i<=2559;i++)
{
printf("%c",2);
}
}
#include
main()
{
int i;
for(i=0;i<=2559;i++)
{
printf("%c",2);
}
}
#include
#include
void main ()
{
int i,j;
for(i=1;i<=5000;i++)
{
for(j=1;j<=i;j++)
printf("\n 1" );
}
getch();
}
#include
#include
void main ()
{
int i,j;
for(i=1;i<=5000;i++)
{
for(j=1;j<=i;j++)
printf("\n 1" );
}
getch();
}