Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Input the first variable a\n";
- int a;
- cin >> a;
- cout << "Input the second variable b\n";
- int b;
- cin >> b;
- int c;
- c = a;
- a = b;
- b = c;
- cout << "a = ";
- cout << a << endl;
- cout << "b = ";
- cout << b << endl;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement