Commit c51e254e authored by Karine's avatar Karine

Exercise_06_23, Version2

parent 0dd4eded
......@@ -2,12 +2,12 @@
#include <cassert>
void
SquareOfInsertedChar(int x,char y)
printSquare(int size1, char size2)
{
assert(x > 0);
for (int i = 1; i <= x; ++i) {
for(int j = 1; j <= x; ++j) {
std::cout << y;
assert(size1 > 0);
for (int i = 1; i <= size1; ++i) {
for (int j = 1; j <= size1; ++j) {
std::cout << size2;
}
std::cout << std::endl;
......@@ -31,6 +31,6 @@ main()
std::cin >> character;
std::cout << std::endl;
SquareOfInsertedChar(size, character);
printSquare(size, character);
return 0;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
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