C char input instead of int and 2 digit char conversion to int

后端 未结 0 929
暖寄归人
暖寄归人 2021-01-18 02:22

This code just an example. In this code if user inputs 1 digit number it works fine but if user inputs more than 1 digit number the number=number-\'0\'; code be

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