C program to change textcolor of a text by pressing any key#include <stdio.h>
#include <conio.h>
void main()
{
int color;
clrscr();
for(color=1;color<=15;color++)
{
gotoxy(300,100);
cprintf("press any key");
textcolor(color);
cprintf("\n\nASHISH BHANDARI");
getch();
clrscr();
}
}
Output :
0 comments:
Post a Comment