Return Negative
Submit solution
Points:
1
Time limit:
2.0s
Memory limit:
256M
Problem types
Allowed languages
Python
Write a program that reads one integer and prints its negative form.
If the integer is positive, make it negative.
If the integer is already negative, print it unchanged.
If the integer is zero, print zero.
Input
The input contains one integer, n.
Output
Output the negative form of n.
Sample Input
5
Sample Output
-5
Comments