You are viewing a single comment's thread. Return to all comments →
int max(int a, int b){ return a > b? a:b; } int main() { int a,b,c,d; cin >> a >>b >>c>>d; int sol = max(a, b); sol = max(sol, c); sol = max(sol, d); cout << sol; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Functions
You are viewing a single comment's thread. Return to all comments →