For this you will requiring a C++ program which can find this. If you need the code please reply on the thread. I will give you code and explain the logic.
Provide a better Answer & Earn Cool Goodies
Enter text here...
LIVE ONLINE CLASSES
Prepraring for the competition made easy just by live online class.
Full Live Access
Study Material
Live Doubts Solving
Daily Class Assignments
Ask a Doubt
Get your questions answered by the expert for free
Enter text here...
Other Related Questions on magical mathematics[interesting approach]