#include
int main()
{
int A, B;
setlocale(LC_ALL, "RUSSIAN");
std::cout << "Введите A >> ";
std::cin >> A;
std::cout << "Введите B >> ";
std::cin >> B;
if (A > B)
B += A;
else
A += B;
std::cout << "A=" << A << std::endl;<br> std::cout << "B=" << B << std::endl;<br> system("pause");
}