Untitled
unknown
c_cpp
a year ago
424 B
9
Indexable
#include <iostream>
using namespace std;
void rysujWize( int iloscPieter, char znak )
{
for (int i = 1; i <= iloscPieter; ++i)
{
for (int j = 1; j <= i; ++j)
{
cout << znak;
}
cout << endl;
}
cout << "\n\n";
}
int main()
{
rysujWize(5, 'O');
rysujWize(7, 'x');
rysujWize(15, 'v');
rysujWize(2, '#');
return 0;
}
Editor is loading...
Leave a Comment