Sum of Specific Digits: Write a program using loops that gets an integer input from the user in the range 25030 and 999999 and finds the sum of the units digit, the hundreds digit and the ten-thousands digit. Make sure to use a loop to validate the input before you proceed to finding the sum of the
我试过了,但当程序输入特定的数字时,它被关闭了1:(
试试这个,我用了一个Try-and-except循环来捕捉错误
相关问题 更多 >
编程相关推荐