lab4(111)

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <math.h> using namespace std; int main() { int a, b, c, d, e; cin>>a>>b>>c>>d; if(a == d){ cout<<a<<'='<<d; } else if(b == d) { cout<<b<<'='<<d; } else if(c == d) { cout<<c<<'='<<d; } else { e = max(max((d-c),(d-a)),(d-b)); cout<<e; } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines