prompted min value and validated with while loop