Skip to content
C

Negate a Number

Easyjava

Read an integer and print its negation using the unary minus operator.

Input: one integer.

Output: one line — the number with its sign reversed (0 stays 0).

Input (stdin)

Output

Run your code to see output here...