#include "pch.h"
#include<iostream>
using namespace std;

void newLine(int repetition);
void B(int repetition);
void right(int repetition);
void left(int repetition);
void space(int repetition);
void toLeft();
void toRigth();
void printB();

int main(void) {

	printB();


	system("pause");
	return 0;
}

void printB() {
	toRigth();
	toLeft();
	toRigth();
	toLeft();
	newLine(10);
}

void newLine(int repetition) {
	for (int i = 0; i < repetition; i++)
		cout << "\n";
}
void B(int repetition) {
	for (int i = 0; i < repetition; i++)
		cout << "B";
}
void right(int repetition) {
	for (int i = 0; i < repetition; i++)
		cout << ">";
}
void left(int repetition) {
	for (int i = 0; i < repetition; i++)
		cout << "<";
}
void space(int repetition) {
	for (int i = 0; i < repetition; i++)
		cout << " ";
}
void toLeft() {
	for (int i = 3; i >= -1; i--) {
		B(2);
		newLine(1);
		if (i > 0)
			B(1);
		if (i == 3)
			space(i + 2);
		else
			space(i * 2);
	}
}
void toRigth() {
	for (int i = 1; i < 3; i++) {
		B(2);
		newLine(1);
		B(1);
		space(i * 2);
	}
}


int main()
{   // declare variables
	int row;
	int column;


	for (int row = 0; row < 3; row++) // validate the input
	{
		for (int column = 0; column < 16; column++)
		{
			cout << 'E';
			if (column == 16)
				break;        // use the break in nested loop.
		}
		cout << endl; // display a newline at the end of the row
	}

	for (int row = 0; row < 3; row++)
	{
		for (int column = 0; column < 16; column++)
		{
			cout << 'E';
			if (column == 6)
				break;  // use the break to start to form the letter 'E'
		}
		cout << endl;
	}
	// repeat
	for (int row = 0; row < 3; row++)
	{
		for (int column = 0; column < 16; column++)
		{
			cout << 'E';
			if (column == 16)
				break;
		}
		cout << endl;
	}

	for (int row = 0; row < 3; row++)
	{
		for (int column = 0; column < 16; column++)
		{
			cout << 'E';
			if (column == 6)
				break;
		}
		cout << endl;
	}

	for (int row = 0; row < 4; row++) // increase to 4 so the letter 'E' is 16 by 16
	{
		for (int column = 0; column < 16; column++)
		{
			cout << 'E';
			if (column == 16)
				break;
		}
		cout << endl;
	}
	return 0;
}