//PascalABC.NET //Версия 3.3, сборка 1634 begin var (a,b,c):=ReadReal3; write(min(min(a,b),c)+max(max(a,b),c)); end.
1 votes Thanks 1
Nata9911
Язык C++. #include <iostream> using namespace std; int main () { int a, b, c; cout << "Введите три числа: " << endl; cin >> a >> b >> c; cout << min(a, min(b,c)) + max(a, max(b,c)); }
Answers & Comments
Verified answer
//PascalABC.NET//Версия 3.3, сборка 1634
begin
var (a,b,c):=ReadReal3;
write(min(min(a,b),c)+max(max(a,b),c));
end.
#include <iostream>
using namespace std;
int main () {
int a, b, c;
cout << "Введите три числа: " << endl;
cin >> a >> b >> c;
cout << min(a, min(b,c)) + max(a, max(b,c));
}