Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

CHOINKA

#include <iostream>
using namespace std;

int main() {
int poziomy = 16;

for (int i = 0; i < poziomy; ++i) {


for (int j = 0; j < poziomy - i - 1; ++j) {
cout << " ";
}
for (int k = 0; k < 2 * i + 1; ++k) {
cout << "o";
}
cout << endl;
}

for (int i = 0; i < poziomy / 3; ++i) {


for (int j = 0; j < poziomy - 1; ++j) {
cout << " ";

}
cout<< "|" <<endl;
}

return 0;
}

You might also like