Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задача 0,10.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int A, B, C;
- int _tmain(int argc, _TCHAR* argv[])
- {
- setlocale(LC_ALL, "russian");
- cout << "Переменная A: ";
- cin >> A;
- cout << "Переменная B: ";
- cin >> B;
- cout << "-----------------------";
- cout << endl;
- C = B;
- B = A;
- A = C;
- cout << "Переменная A: ";
- cout << A;
- cout << endl;
- cout << "Переменная B: ";
- cout << B;
- cout << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment