Problem:
we have to write a program that will display the text in color and also their background in color
Solution:
the conio.h header file has the in build function to print the text in color ,below table show available color and their value, whether it can be used for background and foreground .
Program coding:
#include <conio.h>
void main()
{
int i,j;
clrscr();
for (i=0,j=9; i<9; i++,j--)
{
cprintf("\r\nC4engineer.blogspot.com\r\n");
textcolor(i+1);
textbackground(j+1);
}
getch();
}
Output:
we have to write a program that will display the text in color and also their background in color
Solution:
the conio.h header file has the in build function to print the text in color ,below table show available color and their value, whether it can be used for background and foreground .
Program coding:
#include <conio.h>
void main()
{
int i,j;
clrscr();
for (i=0,j=9; i<9; i++,j--)
{
cprintf("\r\nC4engineer.blogspot.com\r\n");
textcolor(i+1);
textbackground(j+1);
}
getch();
}
Output:
Las Vegas Casino & Hotel Map | Mapyro
ReplyDeleteThe casino's 17,000 하남 출장샵 square foot gaming space is home to more than 2,800 slot machines, 속초 출장샵 table games, 서산 출장안마 live entertainment, dining and more. 보령 출장마사지 The hotel's 4,400 양산 출장안마