incorporating while function

opposed to using if function while function is better to push user to
enter input before we can move on. if statement will b used later in
code