CJCoding With Joseph

Math max and min

Two integers a = 8 and b = 15 are given. Use Math.max and Math.min to print the larger and smaller values on two lines, exactly:

Max: 15
Min: 8

Use Math.max(a, b) and Math.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.