need to reverse a number

i need a simple code that can reverse a number example... if the integer has the value -60 then i want to convert that into 60 and if it has the value -90 then i want to convert it to 90

int x = -90;
int y = -x; // y == 90
x = -60;
y = -x; // y == 60

Or use abs() - it's not clear what you want.

x = 0-x;

x = -x

x -= 2x

i need a simple code that can reverse a number example... if the integer has the value -60 then i want to convert that into 60

The reverse of -60 is 06-.