Odpowiedzi

2010-01-07T21:55:51+01:00
Proszę:

#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();
}
2 3 2