Monday, 18 May 2020

HOW TO CHANGE THE COLOR IN C?

THE FOLLOWING PROGRAM SHOWS HOW TO CHANGE THE COLOR IN THE OUTPUT SCREEN:

#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
text color(RED);
cprintf("COMPUTER WITH RHN");
getch();
return 0;
}

OUTPUT:

       COMPUTER WITH RHN

PROGRAM EXPLANATION:

 THIS PROGRAM IS USED TO CHANGE THE COLOR OF THE PROGRAM IN THE OUTPUT SCREEN.

IF YOU WANT TO CHANGE THE COLOR THEN TYPE:

                  text color(FAV COLOR);

IF YOU WANT TO CHANGE THE WORDS AND SENTENCE THEN TYPE:

                 cprintf("YOUR FAV WORDS AND SENTENCE");


No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...