Absolute Without abs

Python Easy 4 views
Back to Questions

Problem Description

Read one integer n. Output its absolute value without using abs().

Input Format

One integer n.

Output Format

One integer absolute value.

Sample Test Case

Input:
-17
Output:
17

Constraints

-10^18

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next