PiotrJurek

Zad7

Mar 29th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void SZLACZEK(int a, char b)
  6. {
  7. for(int i=0; i<a; i++)
  8. {
  9. cout << b;
  10. }
  11. cout << endl;
  12. }
  13.  
  14. int main()
  15. {
  16. SZLACZEK(5, '*');
  17. SZLACZEK(0, '-');
  18. SZLACZEK(25, '+');
  19. return 0;
  20. }
Add Comment
Please, Sign In to add comment