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