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();
}
EmoticonEmoticon