JakubKaczmarek_123

zadanie 4

Jan 22nd, 2021
46
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. #include <math.h>
  3. using namespace std;
  4. void SZLACZEK(int a, char b);
  5. int main(){
  6. SZLACZEK(10, 'f');
  7. cout << endl;
  8. SZLACZEK(5, 's');
  9. cout << endl;
  10. SZLACZEK(15, '*');
  11. cout << endl;
  12. SZLACZEK(29, '-');
  13. }
  14. void SZLACZEK(int a, char b){
  15. for (int i; i < a; i++){
  16. cout << b;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment