Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void ZAMIANA(int l1,int l2)
- {
- int a=l2;
- int b=l1;
- cout << "Liczba 'a' po zamianie wynosi: "<< a << endl;
- cout << "Liczba 'b' po zamianie wynosi: "<< b << endl;
- }
- int main()
- {
- int liczba1;
- int liczba2;
- cout << "Podaj liczbe a: ";
- cin >> liczba1;
- cout << "Podaj liczbe b: ";
- cin >> liczba2;
- ZAMIANA(liczba1,liczba2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement