Back to tasks
Without the minus
BeginnerPython for kids 路 Lesson 21: if - when the condition is true
Problem Statement
Read a number n. If it is negative, change it to the opposite (without the minus). Print n.
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
One number - the result.
Examples
Example 1
Input
-7
Output
7
Example 2
Input
5
Output
5