Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- // swap values
- int a = 5;
- int b = 6;
- int tmp_a = a; // temporary storage room for the first variable
- a = b;
- b = tmp_a;
- cout << a << " " << b << endl;
- // sakam da mi pecati 6 5
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment