prompt and while loop