// Eddie Hernandez
// A5_EddieH
#include <iostream>
using namespace std;
int main ()
{
int LW;
cout << "Enter length of LW: ";
cin >> LW;
for (int x = 0; x < LW; x++)
{
if (x == 0)
{
for (int y = 0; y < LW; y++)
cout << "E";
}
else if (x == LW - 1)
{
for (int y = 0; y < LW; y++)
cout << "E";
}
else
{
cout << "E";
for (int y = 0; y < LW - 2; y++)
cout << " ";
cout << "E";
}
cout << endl;
}
return 0;
}
No comments:
Post a Comment