C program to change background of the screen


Output Screen shots :



















C program to change background of the screen


//press any key after running this program


#include <stdio.h>
#include <conio.h>
void main()
{
int color;
clrscr();

for(color=1;color<=15;color++)
{


textbackground(color);
clrscr();
getch();
}

}

Output :

Press any key continously then you will see following output :




















and so on when you press key

0 comments:

Post a Comment