- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
public static int opposite(int number)
{
if(number>0){
return number - number - number;
} if (number<0){
return number - number - number;
}return opposite(number);
}
}