Lukasz_Miskiewicz

Zadanie 7

Mar 24th, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void szlaczek ()
  6. { char a;
  7. int b;
  8. cout<<"podaj znak szlaku"<<endl;
  9. cin>>a;
  10. cout<<"podaj dlugosc szlaku"<<endl;
  11. cin>>b;
  12. for (int i=1; i<=b; i++)
  13. {
  14. cout<<a;
  15. };
  16.  
  17. }
  18.  
  19.  
  20.  
  21. int main()
  22. {
  23. szlaczek();
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment