darklord D darklord Регистрация 17 Авг 2013 Сообщения 86 Репутация 0 Спасибо 0 Монет 0 3 Дек 2016 #1 #include #include using namespace std; int main() { setlocale(0, ""); int a, b, c; cout << "Введите число 1: "; cin >> a; cout << "Введите число 2: "; cin >> b; cout << "Введите число 3: "; cin >> c; if (a > b > c) { cout << a; } else if (b > a > c) { cout << b; } else { cout << c; } system("pause"); return 0; }
#include #include using namespace std; int main() { setlocale(0, ""); int a, b, c; cout << "Введите число 1: "; cin >> a; cout << "Введите число 2: "; cin >> b; cout << "Введите число 3: "; cin >> c; if (a > b > c) { cout << a; } else if (b > a > c) { cout << b; } else { cout << c; } system("pause"); return 0; }