#include<stdio.h>
#include <windows.h>
void greetings(void);
void closing(void);
void Colour(unsigned short colour);
int main()
{
    greetings();
    system("pause");
    return 0;
}

//--------Greetings
void greetings(void)
{
    int i;
    char e;
    Colour(9);                           //call function Colour(), the number in parentheses can be changed to get different colours
    printf("%s\t%s\n",__TIME__,__DATE__);//display the computer's time and date
    Colour(6);
    printf("************************************************************\n");
    printf("*               WELCOME WELCOME WELCOME                    *\n");
    printf("************************************************************\n");
    printf ("Loading File...Please Be Patient...\n");
    Colour(13);
    for (i=0; i<60; i++)
        {    
            printf ("|");
            Sleep(80);                //to delay output
        }
    Colour(10);
    printf("\n\n\n\t\t  FiLe Is ReaDy..Press ENTER To Continue..");
    scanf("%c", &e);
    if(e=='\n')
    system("cls");			//to clear the screen
	printf("IIIII  LL       OOOOO  VV     VV EEEEEEE   CCCCC \n");
	printf(" III   LL      OO   OO VV     VV EE       CC     \n"); 
	printf(" III   LL      OO   OO  VV   VV  EEEEE    CC     \n"); 
	printf(" III   LL      OO   OO   VV VV   EE       CC     \n"); 
	printf("IIIII  LLLLLLL  OOOO0     VVV    EEEEEEE   CCCCC \n"); 
    Sleep(2000);
    system("cls");			//to clear the screen
    Colour(3);
	closing();
}
//---------Closing
void closing(void)
{
    system("cls");			//to clear the screen
    Colour(5);
	printf("| G | O | O | D | B | Y | E |\n");
}
//---------function for colour
void Colour(unsigned short colour)
{
    HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
    SetConsoleTextAttribute(hcon,colour);
}

