Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
minmax
#include <iostream> #include <algorithm> int main() { int x = 17; x = std::min(std::max(x, 0), 10); std::cout << x << '\n'; x = -1; x = std::min(std::max(x, 0), 10); std::cout << x << '\n'; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
bin search
Test
c++ car racing game
Bucket Graph Creation
Dar
Dar
march long ques 4
strict aliasing
subset sum=k(dp)
MyStringv2
stackse - search stackoverflow differently
Please log in to post a comment.