How to continuously prompt for user input?

前端 未结 5 1774
离开以前
离开以前 2020-11-29 14:02

I\'m writing a function that prompts for input and then returns different results based on the input and then asks for input again. I\'ve got it returning the correct values

5条回答
  •  粉色の甜心
    2020-11-29 14:28

    One way is to put it in a while loop, and then also check for an exit input to break out.

提交回复
热议问题