c problem 3
c problem 4