I suggest using a loop to check each digit of the string, then use a single call to atoi to convert the string to a number:
確定! 回上一頁