Program to display the text in different colors (Level - Medium)

Program # 20: Program to print colourful text

//Program to display the text in different colors(Level - Medium)
#include <iostream.h> 
#include <conio.h> #include <stdio.h>

void main ()
{
clrscr(); 
int i = 1;

while (i<=16)
{
textcolor(i);              //Set color by number or name like (RED) cprintf("%d",i);       //Print colorful text
i++;
}

getch();
}

Post a Comment

0 Comments