4lab(108)

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> using namespace std; int main() { int a,b,c,min,max; cin >> a >> b >> c; ////большее из трёх чисел if(a > b && a > c) max = a; else if(b > c && b > a) max = b; else max = c; /////меньшее из трёх чисел if(a < b && a < c) min = a; else if(b < c && b < a) min = b; else min = c; cout << "Сумма большего и меньшего из 3 чисел = " << min + max << endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines