Ah, no, we're not going to do your homework for you. We will help you with it. How far can you get with this?
Keep in mind that "hexadecimal", and "decimal", and "octal", etc. are different ways to represent a number as text. It's the same number. What you probably want to do is input a hexadecimal text representation of a number and convert it to the number. Then print a decimal representation of the number. Yes?
What's your OS, anyway?
Best,
Frank