Diwali wishing text Animation Code in C language
![](https://blogger.googleusercontent.com/img/a/AVvXsEjW57638RDiu7jtoF3P2eHjVs8cezjDRuKFQcKI5GSZzGeA76cNJb-X5_l6TAGkW9i0I0ZoZm0jRfOszTYuD3vQWlFsU1-gVvjIMjypH_TeivKX9zGmQ3axrJU3ozb7BRf4mAxskOEOAjMTt7O11t0yHFfeJFg89ohY14Wq3UZQ2aCpvk-_CPti0vpw=s320)
CODE Is:-#include
void delay()
{
for (int i = 0; i < 10000; i++)
for (int j = 0; j < 100; j++)
{
}
}
int main()
{
FILE *ptr;
char c;
ptr = fopen("Diwali.txt", "r"); // Diwali.txt File contain is given below
c = fgetc(ptr);
printf("\n");
while (c != EOF)
{
delay();
printf("%c", c);
c = fgetc(ptr);
}
int i = 0;
while (i < 300)
{
system("COLOR E");
system("COLOR 5");
system("COLOR C");
system("COLOR 9");
i++;
}
return 0;
}
File contain I given below , create a txt File and Paste this contain
* *
*** ***
***** *****
**** ***
** **
********** ********************
******** *****************
***** *************
********************************************************************************
* *
* **** **** *
* **** **** *
* **** **** *
* **************** *
* **************** ** ***** ***** ** ** *
* **** **** * * ** * ** * ** ** *
* **** **** ******* ***** ***** *** *
* **** **** * * ** ** ** *
* **** **** * * ** ** ** *
* *
* *
* ********* *
* *** * *** * *
* *** * * ** *
* *** * * *** *
* *** * * * *
* ********** *** PAWALI .... * *
* *
*********************************************************************************
"" Life with you is like Diwali,
So let's promise to be together like this forever.
Wish you a very Happy Diwali!""
#Awesome bro 😘
ReplyDelete