#include <iostream> using namespace std; double input(double& x) { cout << "Введите число: " << endl; cin >> x; return x; } int main() { setlocale(LC_ALL, ""); double a = input(a); double b = input(b); if (a > b) { cout << "Наибольшее число: " << a << endl; } else { cout << "Наибольшее число: " << b << endl; } }