/*
2022年4月15日16点29分
题目:输出如下图形:
         *
        ***
       *****
      *******
       *****
        ***
         *
*/

#include <iostream>
using namespace std;

int main()
{
    for (int i = 1; i <= 4; i++)
    {
        int j = i, k = 2 * i - 1;
        while (j != 4)
        {
            cout << " ";
            j++;
        }
        while(k != 0)
        {
            cout << "*";
            k--;
        }
        cout << endl;
    }
    for (int i = 3; i >= 1; i--)
    {
        int j = i, k = 2 * i - 1;
        while (j != 4)
        {
            cout << " ";
            j++;
        }
        while (k != 0)
        {
            cout << "*";
            k--;
        }
        cout << endl;
    }
    return 0;
}