Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- using namespace std;
- void zamien(int *a, int *b, int *c, int *d)
- {
- swap(*a, *b);
- swap(*b, *c);
- swap(*a, *d);
- }
- int main()
- {
- int a = 10, b = 20, c = 30, d = 40;
- zamien(&a, &b, &c, &d);
- cout << "Twoje liczby w wybranej kolejnosci:\n\n ";
- cout << "" << a << "\t" << b << "\t" << c << "\t" << d << endl;
- system("pause>nul");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement