Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
3.4 kB
3
Indexable
Never
#include <stdio.h>
#include <windows.h>
void gotoxy(int x, int y)
{
  static HANDLE h = NULL;
  if(!h)
    h = GetStdHandle(STD_OUTPUT_HANDLE);
  COORD c = { x, y };
  SetConsoleCursorPosition(h,c);
}
int main()
{

        int i=5,time=1000;
        int x1=5,y1=5,len=8;

        ///S
        for(i= 0 ;i< 8;i++){
            gotoxy(x1+i,y1);
            printf("s");
            Sleep(100);


        }
        x1=5;y1=6;
        for(i= 0 ;i< 4;i++){
            gotoxy(x1,y1+i);
            printf("S");
            sleep(100);

        }
        x1=5,y1=10;

        for(i= 0 ;i< 8;i++){
            gotoxy(x1+i,y1);
            printf("S");
            sleep(100);


        }
        x1=12;y1=10;
        for(i= 0 ;i< 5;i++){
            gotoxy(x1,y1+i);
            printf("S");
            sleep(100);


        }

        x1=5,y1=15;
        for(i=0;i<8;i++){
            gotoxy(x1+i,y1);
            printf("S");
            sleep(100);


        }
        ///H
        x1=18,y1=5;
        for(i=0;i<11;i++){
            gotoxy(x1,y1+i);
            printf("H");
            sleep(100);


        }
        x1=18,y1=10;
        for(i=0;i<10;i++){
            gotoxy(x1+i,y1);
            printf("H");
            sleep(100);


        }
        x1=27,y1=5;
        for(i=0;i<11;i++){
            gotoxy(x1,y1+i);
            printf("H");
            sleep(100);


        }
        ///A
        x1=33,y1 =15;
        for(i=0;i<11;i++){
            gotoxy(x1+i,y1-i);
            printf("A");
            sleep(100);


        }

        x1=43,y1 =5;
        for(i=0;i<11;i++){
            gotoxy(x1+i,y1+i);
            printf("A");

            sleep(100);
        }
        x1=38,y1=10;
        for(i=0;i<11;i++){
            gotoxy(x1+i,y1);
            printf("A");
            sleep(100);

        }

        ///F
        x1=60,y1=5;
        for(i=0;i<11;i++){
            gotoxy(x1,y1+i);
            printf("F");
            sleep(100);
        }
        x1=60,y1=5;
        for(i=0;i<11;i++){
            gotoxy(x1+i,y1);
            printf("F");

            sleep(100);
        }
        x1=60,y1=10;
        for(i=0;i<8;i++){
            gotoxy(x1+i,y1);
            printf("F");

            sleep(100);
        }

        ///I
        x1=80,y1=5;
        for(i=0;i<11;i++){
            gotoxy(x1,y1+i);
            printf("I");

            sleep(100);
        }
        x1=77,y1=5;
        for(i=0;i<7;i++){
            gotoxy(x1+i,y1);
            printf("I");

            sleep(100);
        }
        x1=77,y1=15;
        for(i=0;i<7;i++){
            gotoxy(x1+i,y1);
            printf("I");

            sleep(100);
        }
        ///Printing borders

        x1=1,y1=3;
        for(i=0;i<90;i++){
            gotoxy(x1+i,y1);
            printf("*");

            sleep(100);
        }

        x1=1,y1=3;
        for(i=0;i<15;i++){
            gotoxy(x1,y1+i);
            printf("*");

            sleep(100);
        }
        x1=1,y1=18;
        for(i=0;i<90;i++){
            gotoxy(x1+i,y1);
            printf("*");

            sleep(100);
        }
        x1=90,y1=3;
        for(i=0;i<15;i++){
            gotoxy(x1,y1+i);
            printf("*");
            sleep(100);
        }
        getchar();
}