Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- void gotoxy(int x, int y)
- {
- COORD c;
- c.X = x-1;
- c.Y = y-1;
- SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), c);
- }
- int main()
- {
- int i,j,n;
- for(i=1;i<10;i++)
- {
- gotoxy(5,1);
- for(j=1;j<=i;j++)
- if(j%2==0) cout<<"\\";
- else cout<<"/";
- cout<<"@";
- Sleep (50);
- system ("cls");
- }
- for(i=1;i<=110;i++)
- {
- gotoxy(5,i);
- if (i%2==0)
- cout<<"/\\/\\/\\/\\/\\@";
- else cout<<"\\/\\/\\/\\/\\/@";
- Sleep(50);
- system("cls");
- }
- for(i=7;i>=1;i--)
- { gotoxy(121-i,5);
- { for (j=1;j<=i;j++)
- if (j%2==0) cout<<"\\";
- else cout<<"/";}
- Sleep(50);
- system("cls");}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement