阅读背景:

C程序:仅使用数组检查输入的数字是1和0

来源:互联网 

So I am trying to make a smaller simple program to solve a problem. For this, I am trying to check to make sure the user inputs a number containing ONLY 1s and 0s and then I will use this number to perform a division. For example the number 11010 or 10111. Now my problem is, if I declare an integer to store this number (as follows) there wouldn't be a way to check all the digits are 1s or 0s right?So I am trying to make a smaller simple program




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: