fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = 3;
  6. int y = 5;
  7. int z = 8;
  8. if (x > y)
  9. if (z > x)
  10. y = z;
  11. else y = x;
  12. else
  13. if (z > y)
  14. y = z;
  15. else y = y;
  16. printf("%d",y);
  17. return 0;
  18. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
8