#include<stdio.h>
#include<conio.h>
void main()
{
  textbackground(BLUE);
  textcolor(WHITE);
  clrscr();
  gotoxy(30,9);
  printf("Welcome to");
  gotoxy(30,10);
  printf("Program2Do");
  getch();
}

It is a simple color chnaging C program. I had run it on Codeblock. But got error in this line: textbackground(BLUE);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.