RafalSobala

zad7

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