Absolute Value
Computer Mathematics
Easy
2 views
Problem Description
Given an integer n, print its absolute value.
Input Format
One integer n.
Output Format
One integer |n|.
Official Solution
If n is negative, output -n, otherwise output n.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!