#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;
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter