Commit b6f00f5f by Mikayel Ghaziyan

Mikayel Ghaziyan e4.25 Version 2

parent a6f616f2
......@@ -4,26 +4,27 @@ int
main()
{
int length;
std::cin >> length;
int i = 1;
int j = 1;
while(i <= length) {
while(j <= length) {
std::cin >> length;
if (i == 1 || i == length || j == 1 || j == length) {
int i = 1;
while (length >= i) {
int j = 1;
while (length >= j) {
if (1 == i) {
std::cout << "*";
}
else {
} else if (length == i) {
std::cout << "*";
} else if (1 == j) {
std::cout << "*";
} else if (length == j) {
std::cout << "*";
} else {
std::cout << " ";
}
j++;
++j;
}
std::cout << std::endl;
i++;
++i;
j = 1;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment