Puzzle Programs


You might have encountered this puzzle at several places. Including in WhatsApp and other social media which is circulated in the following manner:


You will find many discussions on the web on solving this which ends up in the answer 148. We can also obtain the result by writing a program and asking machine to solve it.

A C program for this along with detailed comments can be found in following github link. Have a look:

Puzzle Program Solution


Let me Know What you Think!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s