Advertisement
LukaszPanko

Zadanie 14

Mar 29th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. void ZAMIANA(int l1,int l2)
  7. {
  8.     int a=l2;
  9.     int b=l1;
  10.     cout << "Liczba 'a' po zamianie wynosi: "<< a << endl;
  11.     cout << "Liczba 'b' po zamianie wynosi: "<< b << endl;
  12. }
  13.  
  14. int main()
  15. {
  16.     int liczba1;
  17.     int liczba2;
  18.     cout << "Podaj liczbe a: ";
  19.     cin >> liczba1;
  20.     cout << "Podaj liczbe b: ";
  21.     cin >> liczba2;
  22.     ZAMIANA(liczba1,liczba2);
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement