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();
}

Comments

Popular posts from this blog

Tip of the Day # 13

Governor Generals of Pakistan

Tip of the Day# 12