Decimal to Hexadecimal

Enter a decimal number and bit size and show the twos complement representation of the number.