Uploaded code for Question 9

Answer doesn't check if the number is an integer before operating.