* Lets do something new !.
* Want to change color of font or background, Type this program and run !
* C Program for expert programmers !
* C Programming Trick !
//Written by Latest Technology Guide
//Title : C Language Example # 21 Example : Change Font Color and Background Color in C.
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
for(int i=0;i<255;i++)
{
textcolor(i);
printf("\n");
cprintf("%d = %c",i,i);
if(i%30==0)
getch();
}
getch();
}
Output:
* You must run to check output.
--------------------------------------------------------------------------------
Explanation of C Programming Language Example # 21 Example : Change Font Color and Background Color in C
* Run This Program !
Explanation of C Programming Language Example # 21 Example : Change Font Color and Background Color in C
* Run This Program !
* No Words for this program !
Note: All programs are developed and tested using Turbo C++ 3.0 under Windows XP. We just want to provide guidelines to the users. If you are using any other Compiler or other operating system they you need to modify this program as per your requirements.
thank you for sharing nice article in your blog
ReplyDeletevisit
web tutorial programming
https://www.welookups.com