Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int ts=1, sdvig=50, op=1;
- for(int i=6;i>=1;i--)
- {
- for(int j=0;j<=sdvig;j++)
- {
- cout << " ";
- } sdvig-=1+op;
- for(int j=1;j<=ts;j++)
- {
- cout << (10+rand()%90) << " ";
- }
- cout <<endl;
- ts*=2; if(i==2||i==3) ts-=2; if(i==2) ts-=6; op*=2; if(i==2) sdvig+=8;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement