csc-python-solutions/9/Absolute Value.py

6 lines
56 B
Python
Raw Normal View History

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