Colorful Hello World Program in C/C++

Create the traditional Hello world program like a boss in C.
Add colours to your hello world program and impress others.
Below is the code snippet in C/C++ to create a colourful hello world program.

#include 
#include
void main()
{
 clrscr();
 for (int i = 40; i >= 0; --i)
 {
  gotoxy(i + 5, 33);
  delay(100);
  textcolor(i + 1);
  cprintf("Hello world ");
 }
 getch();
}

Post a Comment