Started working on problem 7 in c.