Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int ts=1, sdvig=50, op=1;
  7.     for(int i=6;i>=1;i--)
  8.     {
  9.         for(int j=0;j<=sdvig;j++)
  10.         {
  11.             cout << " ";
  12.         } sdvig-=1+op;
  13.         for(int j=1;j<=ts;j++)
  14.         {
  15.             cout << (10+rand()%90) << " ";
  16.         }
  17.         cout <<endl;
  18.         ts*=2; if(i==2||i==3) ts-=2; if(i==2) ts-=6; op*=2; if(i==2) sdvig+=8;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement