โ Back to Miscellaneous
Question 404
Math max and min
Math max and min
Two integersa = 8andb = 15are given. UseMath.maxandMath.minto print the larger and smaller values on two lines, exactly: Max: 15 Min: 8 UseMath.max(a, b)andMath.min(a, b).
Expected Output:
Max: 15 Min: 8
Topics:
Miscellaneous
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.