Hi,

I have got an integer as 0010000001.

I need to remove the last 4 digits ie 0001

and the remaining digits is 001000(this is expected)

The truncation of last 4 digit is standard. ie the size of last digits is always 4.

can anybody help me to code this in c++.

Solution: i tried using num/10000 but i dont think this is feasible solution.

Awaiting a better logic.

Thanks

Anu