Commit d5b1e03c authored by Michael's avatar Michael

just commit

parent ad0c0510
......@@ -16,7 +16,7 @@ main()
}
const int LINE_LIMIT = (lineCount - 1) / 2;
for (int row = LINE_LIMIT; row >= -LINE_LIMIT; --row) {
for (int column = -LINE_LIMIT; column <= (LINE_LIMIT - std::abs(row)) + 1; ++column) {
for (int column = -(LINE_LIMIT - 1); column <= (LINE_LIMIT - std::abs(row)) + 1; ++column) {
std::cout << (column <= std::abs(row) - LINE_LIMIT ? " " : "*");
}
std::cout << std::endl;
......
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