eolymp
bolt
Try our new interface for solving problems
Məsələlər

Dördündən ən böyüyü

dərc olunub 10.02.24 21:36:25

include <iostream>

using namespace std; int main() { long long a, b, c, d; cin>>a>>b>>c>>d; if (a >= b && a >= c && a >= d) { cout<<a; } else if (b >= a && b >= c && b >= d) { cout<<b; } else if (c >= a && c >= b && c >= d) { cout<<c; } else { cout<<d; } }