Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void ZAMIANA (int &a, int &b)
- {
- int c=a; a=b; b=c;
- }
- int main()
- {
- int a=3,b=5;
- cout<<"To sa twoje podstawowe liczby "<<a<<", "<<b<<endl;
- ZAMIANA(a,b);
- cout<<"To sa twoje zamienione liczby "<<a<<", "<<b<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement