Change the output's text colour in C
Hi friends, today I am going to share a funny code with you, which will change the colour of the text of out of your C console proram.
here's the code is. :
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
textcolor(8);
cprintf("Hello world");
getch();
return 0;
}
You can change the value of "textcolor(n);" function. here "n" may be any interger value.
Try it and have fun..
here's the code is. :
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
textcolor(8);
cprintf("Hello world");
getch();
return 0;
}
You can change the value of "textcolor(n);" function. here "n" may be any interger value.
Try it and have fun..
Comments
Post a Comment