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 main()
- {
- int a, b;
- cout << "Podaj dwie liczby" << endl;
- cin>>a>>b;
- cout<<"a rowna sie: "<<a<<", b rowna sie: "<<b<<endl;
- ZAMIANA (a,b);
- return 0;
- }
- void ZAMIANA (int a, int b) {
- int c, d;
- c=b;
- cout<<"a wynosi: "<<c<<endl;
- d=a;
- cout<<"b wynosi: "<<d;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement