fork download
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. setlocale(LC_ALL, "russian");
  9.  
  10. int val1;
  11. int val2;
  12. int val3;
  13. int box1;
  14. int box2;
  15. int box3;
  16. int change;
  17. change = 0;
  18.  
  19. cin >> val1 >> val2 >> val3;
  20.  
  21. if ((val1 <= val2))
  22. {
  23. box1 = val1;
  24. box2 = val2;
  25. }
  26. else
  27. {
  28. box1 = val2;
  29. box2 = val1;
  30. }
  31.  
  32. if (box2 >= val3)
  33. {
  34. box3 = box2;
  35. box2 = val3;
  36. }
  37. else
  38. {
  39. box3 = val3;
  40. }
  41.  
  42. if (box1 >= box2)
  43. {
  44. change = box1;
  45. box1 = box2;
  46. box2 = change;
  47. }
  48.  
  49. cout << box1 << ", " << box2 << ", " << box3;
  50.  
  51. _getch();
  52. return 0;
  53. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:19: fatal error: conio.h: No such file or directory
compilation terminated.
stdout
Standard output is empty