fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a, b, c;
  6. cin >> a >> b >> c;
  7. if ((b > a && a > c) || (c > a && a > b)) {
  8. cout << a;
  9. }
  10. else if ((a > b && b > c) || (c > b && b > a)) {
  11. cout << b;
  12. }
  13. else {
  14. cout << c;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 4536KB
stdin
2 256 8
stdout
8