TheRasVa

Задача 0,10

Feb 6th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. // Задача 0,10.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7. int A, B, C;
  8.  
  9. int _tmain(int argc, _TCHAR* argv[])
  10. {
  11.     setlocale(LC_ALL, "russian");
  12.     cout << "Переменная A: ";
  13.     cin >> A;
  14.     cout << "Переменная B: ";
  15.     cin >> B;
  16.     cout << "-----------------------";
  17.     cout << endl;
  18.     C = B;
  19.     B = A;
  20.     A = C;
  21.     cout << "Переменная A: ";
  22.     cout << A;
  23.     cout << endl;
  24.     cout << "Переменная B: ";
  25.     cout << B;
  26.     cout << endl;
  27.     system("PAUSE");
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment