Commit e8d45a74 authored by Karine's avatar Karine

Exercise_05_23, Version2

parent 74a2079d
......@@ -18,39 +18,5 @@ main()
}
return 0;
} /*
int
main()
{
int space = 4;
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= space; j++) {
std::cout << " ";
}
space--;
for (int j = 1; j <= 2 * i - 1; j++) {
std::cout << "*";
}
std::cout << std::endl;
}
}
space = 1;
for (int i = 1; i <= 5; i++) {
for (int j = 1;j <= space; j++) {
std::cout << " ";
}
space++;
for (int j = 1; j <= 2 * (5 - i) - 1; j++) {
std::cout << "*";
}
std::cout << std::endl;
}
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