How do I make this program check if an input is an integer without causing an error in runtime and stop the loop with a sentinel value?

后端 未结 0 1169
广开言路
广开言路 2021-02-04 06:48

I\'ve been trying to root out a runtime error from my program caused while it is checking if user input is an integer, and if it isn\'t one to print out an error message, and as

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