exported do/while loops to method get_answer, added check for 0 division