Fill the screen alternately with heart and diamond
Write a program to fill the screen alternately with heart and diamond the ASCII code for heart and diamond are 3 and 4 respectively.
#include
#include
void main(void)
{
int a=1;
while(a<2001)
{
printf("\x3\x4");
a++;
}
getch();
}
#include
#include
void main(void)
{
int a=1;
while(a<2001)
{
printf("\x3\x4");
a++;
}
getch();
}
Comments
Post a Comment