text: #include <iostream>
  using namespace std;
  
  int main()
  {
      int n = 7, x = n/2 + 1;
      for(int i = 1; i <= n; i++) {
          for(int j = 1; j <= x; j++) 
              cout << i << " ";
              
          if(i <= n/2)
              x--;
          else
              x++;
          cout << endl;
      }
      return 0;
  }