Showing posts with label Text and Background color print in C Program. Show all posts
Showing posts with label Text and Background color print in C Program. Show all posts

Sunday, December 6, 2015

Text and Background color print in C Program

Program #14

Description:
Set text color as well background color in C Program.

#include<stdio.h>
#include<conio.h>
int main(void)
{
   int i;

   clrscr();
   for (i=0; i<15; i++)
   {

       /* Just positioning to center */
       gotoxy(30,i+1);

       cprintf("Let Us C");
       cprintf("\r\n");
   
    /* set text color */
       textcolor(i+1);
   
    /* set background color */
       textbackground(i);
   }

   getch();
   return 0;
}



Popular Posts