You are viewing a single comment's thread. Return to all comments →
using namespace std;
int max(int a, int b) { return (a > b) ? a:b; }
int main() { int a,b, c ,d ; cin >> a; cin >> b; cin >> c; cin >> d; int solonnhat = max(max(a,b), max(c,d)); cout << solonnhat << endl; 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 →
include
using namespace std;
int max(int a, int b) { return (a > b) ? a:b; }
int main() { int a,b, c ,d ; cin >> a; cin >> b; cin >> c; cin >> d; int solonnhat = max(max(a,b), max(c,d)); cout << solonnhat << endl; return 0; }