Given the position of a knight list down all possible next moves.
Although chess is a very interesting two player game a chess board is also equally interesting as it opens doors to various computational problems. The moves of the knight are rather unusual and make a great programming problem.
Two-dimensional matrix
make -f KnightMake
./KnightProg