Advertisement
Guest User

snejkv2dyszel

a guest
Nov 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. using namespace std;
  4.  
  5. void gotoxy(int x, int y)
  6.  
  7. {
  8.  
  9.      COORD c;
  10.  
  11.      c.X = x-1;
  12.  
  13.      c.Y = y-1;
  14.  
  15.      SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), c);
  16.  
  17. }
  18. int main()
  19. {
  20.  int i,j,n;
  21.  for(i=1;i<10;i++)
  22.  {
  23.      gotoxy(5,1);
  24.     for(j=1;j<=i;j++)
  25.         if(j%2==0) cout<<"\\";
  26.  else cout<<"/";
  27.         cout<<"@";
  28.         Sleep (50);
  29.         system ("cls");
  30.     }
  31.  
  32.  for(i=1;i<=110;i++)
  33.  {
  34.      gotoxy(5,i);
  35.      if (i%2==0)
  36.         cout<<"/\\/\\/\\/\\/\\@";
  37.      else cout<<"\\/\\/\\/\\/\\/@";
  38.      Sleep(50);
  39.      system("cls");
  40.  }
  41.  for(i=7;i>=1;i--)
  42.     { gotoxy(121-i,5);
  43.         { for (j=1;j<=i;j++)
  44.         if (j%2==0) cout<<"\\";
  45.         else cout<<"/";}
  46.         Sleep(50);
  47.         system("cls");}
  48.  
  49.     return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement