999999 HTML COLORS

Share it Please
/*PROGRAMMER: SOJITRA AADARSH H.

   DATE:4/8/2013

   E-MAIL: adarshsojitra@gmail.com*/
#include<stdio.h>
#include<conio.h>

main()

{

     FILE *color;
     long i,j,a,b,c,d,e,f;
     char k;
     j=1;
     clrscr();

     printf("\n\t\t     ===============Colours===============");
     printf("\n  Press Y to install and N to exit: ");
     scanf("%c",&k);     
     if((k=='Y')||(k=='y'))

     {

          clrscr();
          printf("\n\t\t     ===============Colours===============");
          printf("\n\n  Installing..........");
          color=fopen("COLOR.HTM","w");

          for(j=1;j<=999999;j++)

          {
                for(j=1;j<=9;j++)

       {
                     i=fprintf(color,"<font size=5 color=#00000%ld>|||#00000%ld</font>",j,j);
               }

               for(j=10;j<=99;j++)
               {
                     i=fprintf(color,"<font size=5 color=#0000%ld>|||#0000%ld</font>",j,j);
               }

               for(j=100;j<=999;j++)
              {
                     i=fprintf(color,"<font size=5 color=#000%ld>|||#000%ld</font>",j,j);
              }

              for(j=1000;j<=9999;j++)
              {
                     i=fprintf(color,"<font size=5 color=#00%ld>|||#00%ld</font>",j,j);
              }

              for(j=10000;j<=99999;j++)
             {
                     i=fprintf(color,"<font size=5 color=#0%ld>|||#0%ld</font>",j,j);
             }

             for(j=100000;j<=999999;j++)
             {
                     i=fprintf(color,"<font size=5 color=#%ld>|||#%ld</font>",j,j);
             }

         }
        clrscr();
        printf("\n\t\t     ===============Colours===============");
        printf("\n\n  Program is installed correctly");
        printf("\n\n  to see different colours with html codes open color.htm");
        printf("\n\n  Range #000000 to #999999");
        printf("\n\n  press any key to quit.........");

        }
        else if((k=='n')||(k=='N'))

        {
                clrscr();
                printf("\n\t\t     ===============Colours===============");
                printf("\n\n  PRESS ANY KEY TO QUIT.........");
        }

        else

        {
                clrscr();
                printf("\n\t\t     ===============Colours===============");
                printf("\n\n  !!!ERROR!!!");
                printf("\n\n  PRESS ANY KEY TO QUIT.......");
        }
        getch();
}