Advertisement
TheMagnusRex

18

Mar 26th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     for(int i=1;i<5;i++){
  8.         for(int j=0;j<i;j++){
  9.             cout<<10-i<<" ";
  10.         }
  11.         cout<<endl;
  12.         for(int l=0;l<i;l++){
  13.             cout<<5-i<<" ";
  14.         }
  15.         cout<<endl;
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement