Untitled
unknown
c_cpp
a month ago
424 B
3
Indexable
Never
#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; }
Leave a Comment