C Program to Display Various Colors using ASCII Codes

SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,c,n=1;
clrscr();
while(n<=15)
{
printf("ENTER ANY NO:");
scanf("%d",&c);
textbackground(c);
for(i=1;i<=50;i++)
{
for(j=1;j<81;j++)
{
gotoxy(j,i);
cprintf(" ");
}
}
gotoxy(1,1);
textbackground(7);
n++;
}
getch();
}
Previous
Next Post »

If you still didn't find what you're looking for, you can search this website below: