Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <windows.h>
- #include <cstdio>
- using namespace std;
- int main()
- {
- int n;
- cout<<"Podaj poziom choinki:";
- cin>>n;
- cout<<endl;
- for (int i=1;i<n;i++)
- {
- for (int x=1; x<=n-i;x++)
- {
- cout<<" ";
- }
- for (int y=1;y<=2*i-1;y++)
- {
- cout<<"x";
- Sleep(0200);
- }
- cout<<endl;
- }
- cout<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement