Skip to main content

COLOR FULL BACKGROUND IN C

COLOR FULL BACKGROUND IN "C" LANGUAGE


#include<stdio.h>
#include<graphics.h>
#include<conio.h>
void main()
{
int c=1,i;
int gd,gm;
 gd = DETECT,gm;
initgraph(&gd, &gm,"c:..//bgi");

for(i=1;i<=13;i++)
{
setbkcolor(c);
c++;
delay(1000);

gotoxy(38,15);
setcolor(c+1);
printf("jeevan");
}
getch();
}







                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                




Comments

Post a Comment

Popular posts from this blog

Kaun Banega Crorepati in c language

                 Welcome to Kaun Banega Crorepati # include <stdio.h> # include <conio.h> #include <graphics.h> #include <stdlib.h> #include"line2.h" int i; char y; void end() { printf("\n You Entered y \n"); printf("\n The program is ending !\n"); printf("\n Thank you for playing\n"); printf("\n Press any key to exit\n"); getch();  } void play() { void q2(); void sound(); printf("\n Your first question is-\n"); printf("\n Which is the capital of Maharashtra?\n"); printf("\n 1) Delhi" "\t" " 2) Mumbai\n"); printf("\n 3) Ranchi" "\t" " 4) Goa \n"); scanf("%d",&i); clrscr(); jeevan(); if(i==2) { printf("\n You win Rs 1000\n"); printf("\n Pres Any key to continue\n"); getch(); printf("\n Do you want to exit? If yes then press y else press other key .\n");...
Android Login View with Video Download Full Source Code

DAY FINDER

ENTER THE DATE AND SEARCH THE DAY(PAST AND FUTURER) #include < stdio.h > #include < conio.h >   void main() {     int sd, sm, sy, day, r, y, i, l = 0, sel = 0;     clrscr();     printf("first you diside are you find past are future\n");     printf("press 1 to past\n");     printf("press 2 to future\n");     scanf("%d", & sel);     printf("enter searching date");     scanf("%d%d%d", & sd, & sm, & sy);     if (sel == 1) {       y = 2011 - sy;       for (i = sy; i <= 2011; i++)       {         if (i % 4 != 0)           continue;         else           l++;       }     } else {       y = sy - 2011;       for (i = 2011; i <=...