prompted for min value and validated with while

prompted for min value and validated with while