You are viewing a single comment's thread. Return to all comments →
#include <bits/stdc++.h> using namespace std; int solve(int num1, int num2, int num3, int num4){ int num_max = max(max(num1,num2), max(num3,num4)); return num_max; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); //optimization lines; int n1,n2,n3,n4; cin>>n1>>n2>>n3>>n4; cout << solve(n1, n2, n3, n4); 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 →