Advertisement
ZhilinskiyG

Task 0_10

Feb 4th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout << "Input the first variable a\n";
  7.     int a;
  8.     cin >> a;
  9.     cout << "Input the second variable b\n";
  10.     int b;
  11.     cin >> b;
  12.     int c;
  13.     c = a;
  14.     a = b;
  15.     b = c;
  16.     cout << "a = ";
  17.     cout << a << endl;
  18.     cout << "b = ";
  19.     cout << b << endl;
  20.     return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement