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