Adding solution for problem 8 in c.
Updating problem 8 to comply with current problem 8 objectives.
Adding solution to problem 9 in c.