Quote Originally Posted by nuzzle View Post
With what?

There one solution and it's 6174 = 7641 - 1467.
Weird!

My post was relevant to the experience level of OP. He/She should know how to play with numbers, how to get the indivisual digits, and process them. Of course, the tasks I gave was not relevant to the original question in hand, the OP mentioned himself to be "noob in C++"