Can anybody help me with the following problem:

Write a C program for the missionaries and cannibals problem.

The rules are(for those who haven't played the game):

# There are three missionaries and three cannibals on the left bank of a river.

# They wish to cross over to the right bank using a boat that can only carry two at a time.

# The number of cannibals on either bank must never exceed the number of missionaries on the same bank, otherwise the missionaries will become the cannibals' dinner!

I'd be highly grateful if anybody can help me with this.