Jayanth, you are right if the digit starts at 0x240 but the problem states 0x0F0. 240 is the decimal representation of it but not the value the OP is starting with. In any case, adding 48 will make it ASCII and they are asking for 7-segment.
The simplest way is to make three variables, you can call them anything you like but here I'll use H, T and U for Hundreds, Tens and Units. These will hold the decimal conversion of the hex number.
1. Take the original number and see how many time you can subtract D'100' from it until the result is less than D'100'. This gives you the H value.
2. From what is left, see how many times you can subtract D'10' before the result is less than D'10', this gives you the T value.
3. The remainder is the U value.
4. Take each of these in turn and use the value as an index to a look-up table containing the 7-segment patterns.
Brian.