sign

JavaF

Reverse Number sign

An integer value N is passed as the input. The program must reverse the sign of N and print -N as the output. Input Format:The first line…