Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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.
decode
Test 10(2020)
325324
fibonacci
next greater palindrome
带头结点的单链表
Reverse a String
FindMissingLagrange
cs
PreDir2
Please log in to post a comment.