mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-09-07 20:20:39 +02:00
18 lines
376 B
C++
18 lines
376 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
void rysujLinie(char znak = '*', int ile = 5) {
|
|
for (int i = 0; i < ile; i++) {
|
|
cout << znak;
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
cout << "bez argumentów:" << endl;
|
|
rysujLinie();
|
|
cout << endl << "z jednym argumentem: " << endl;
|
|
rysujLinie('-');
|
|
cout << endl << "z dwoma argumentami: " << endl;
|
|
rysujLinie('+', 10);
|
|
}
|