Skip to content
CampusEduX

Negate a Number

Easyjava
Learn the Concept: Unary Operators

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).

Related Problems

Input (stdin)

Output

Run your code to see output here...