Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a;
- char b;
- void szlaczek(int a, char b)
- {
- for(int i=1; i<=a; i++)
- {
- cout<<b;
- }
- }
- int main()
- {
- int a;
- char b;
- cout << "Podaj dlugosc szlaczka " << endl;
- cin >> a;
- cout << "Podaj znak szlaczka " << endl;
- cin >> b;
- szlaczek(a,b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement