Finished Decimal2HexConversion with ternary operator