#include <iostream>
#include<cmath>
#include<ctime>
#include<string>
#include <iomanip>
#include <fstream>
using namespace std;
int main()
{
cout << " ##############";
cout << endl;
for (int i = 0; i <=5; i++)
{
for (int j = 0; j < 1; j++)
{
cout << " " << "#";
}
for (int j = 1; j <= i; j++)
{
cout << " ";
}
for (int j = 0; j <1; j++)
{
cout << "#";
}
for (int j = i; j < 5; j++)
{
cout << " ";
}
for (int j = i; j < 5; j++)
{
cout << " ";
}
for (int j = 0; j <1 ; j++)
{
cout << "#";
}
for (int j = 0; j < i; j++)
{
cout << " ";
}
for (int i = 0; i < 1; i++)
{
cout << "#";
}
cout << endl;
}
for (int i = 0; i <=5; i++)
{
for (int j = 0; j < 1; j++)
{
cout << " " << "#";
}
for (int j = 5; j >i; j--)
{
cout << " ";
}
for (int j = 0; j< 1; j++)
{
cout << "#";
}
for (int j = 0; j < i; j++)
{
cout << " ";
}
for (int j = 0; j < i; j++)
{
cout << " ";
}
for (int j = 0; j < 1; j++)
{
cout << "#";
}
for (int j = 5; j > i ; j--)
{
cout << " ";
}
for (int i = 0; i < 1; i++)
{
cout << "#";
}
cout << endl;
}
cout << " ##############";
cout << endl;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter