#include using namespace std; int main () { int a,b,c,d; int min,max, firstMid,secondMid; cin>>a>>b>>c>>d; min = a b ? a : b; secondMid = a > b ? b : a; if (c > max) { secondMid = max; max = c; } else if (c > secondMid) { secondMid = c; } if (d > max) { secondMid = max; max = d; } else if (c > secondMid) { secondMid = d; } //======================================================================== cout << "Minimum number is = " << min << ", firstMid = " << firstMid << endl; cout << "Maximum number is = " << max << ", secondMid = " << secondMid << endl; return 0; }
Answers
Answered by
0
Answer:
what is your question??
Explanation:
Similar questions