--> I don't under stand DISPLAYS ITS VALUE IN BINARY FORMAT :D
it's a different system of numeration. http://en.wikipedia.org/wiki/Numeral_system
For example:
510 = 1012
2810 = 1ะก16 = 348 = 111002
Firstly if you don't understand what binary is why're you doing a computing course, go look up that first.
Then all you need to understand is how many bits is in an integer, then just create a for loop to check for high bits and show the output.