csc-python-solutions/09/1 - Absolute Value.py

6 lines
56 B
Python
Raw Permalink Normal View History

2021-02-18 09:00:16 +00:00
x=int(input())
if x < 0:
print(-x)
else:
print(x)