> Can anyone help me write the program to find the magic numbers in c/c++??
Sure, but you need to decide whether it's C OR C++ (not a random mix of both), and you need to put in some actual effort yourself.
There are some unfounded rumours that there are some threads which noobs are supposed to read, which probably explains why you haven't read them :icon_rolleyes:
> I have looking for this solution for a long time
So you've already failed to google your way to a free lunch....
> so ill be grateful if sumone here can solve it..
So now you want us to do your homework.