CJCoding With Joseph

Absolute Value of Input

Read a whole number and print its absolute value using Math.Abs. For the input -7, print:

7

Expected Output:

7
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
-7
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.