How to exit the scanf function if a specific value is entered?

前端 未结 0 1070
傲寒
傲寒 2020-12-03 10:51

I want the scanf to read and store some data into a number of variables. However, if the first variable, i.e., quantity is 0 then the scanf needs to exit asking for the user

相关标签:
回答
  • 消灭零回复
提交回复
热议问题