C program to make a multiple colored moving text















C program to make a multiple colored moving text




#include <stdio.h>
#include <conio.h>
#include <dos.h>


void main()
{
int i;
int j;
int color=1;

clrscr();

while(!kbhit())
{
textcolor(color);

cprintf("\nHello!");

delay(100);

color++;

}

getch();

while(!kbhit())
{
textcolor(color);

cprintf("\nWelcome!");

delay(100);

color++;

}

getch();

}

Output :

0 comments:

Post a Comment