fork download
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. const int valueA = 50;
  5.  
  6. int main()
  7. {
  8. int valueB = 97;
  9. int valueC = 145;
  10. int smallestValue = std::min({valueA, valueB, 123, valueC});
  11.  
  12.  
  13. std::cout << "smallestValue = " << smallestValue << std::endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
smallestValue = 50