" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <iostream>
using namespace std;
int main() {
int height = 0;
int x_num = 1;
cout << "Podaj wysokosc trojkata: ";
cin >> height;
for(int i = 0; i < height; ++i) {
for(int j = 0; j < x_num; ++j)
cout << "*";
cout << "\n";
x_num += 2;
}
cin.ignore();
cin.get();
}