i think you have misunderstood my question.it is adam no. And it is a number that has the special property that the square of the reverse of a number is reverse of the square of the number.ex:12^2 =144 and 21^2=441 . The problem is that i dont know to reverse the number

jwdonahue provides some good advice for reversing a number in his post below mine. As he said, the key to reversing a number is representing a number as a String. You could also do it with Binary arithmetic, but that's harder to read.

So what is a number? Think about it a bit. In C, there's integers and there's strings of decimal digits. There's functions available to convert from int to string and back again. Has your instructor covered those yet? Reversing a string is a trivial exercise. I'll let you work the rest out for yourself.

i think you have misunderstood my question.it is adam no. And it is a number that has the special property that the square of the reverse of a number is reverse of the square of the number.ex:12^2 =144 and 21^2=441 . The problem is that i dont know to reverse the number

then you should learn how to reverse the number.
after that logic of adam's number is easy.

Adam number

Thank You.But I don't know about Presentation of Code.
You mean That I should leave proper space in between the statements or do you mean that is should create user readable variables and insert comments where ever necessary?
Can you help me in this! :o