Advertisement
Kacper_Michalak

Zadanie funkcje 4

Jan 23rd, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. void SZLACZEK(int x, char y)
  6. {
  7.     for (int i = 0; i < x; i++)
  8.     {
  9.         cout << y;
  10.     }
  11.     cout << "\n";
  12. }
  13.  
  14. int main()
  15. {
  16.     SZLACZEK(5, '*');
  17.     SZLACZEK(10, '$');
  18.     SZLACZEK(3, '^');
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement