题解 | 反向输出一个四位数
反向输出一个四位数
https://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
n = int(input())
result = ""
while n > 0:
result += str(n % 10)
n //= 10
print(result)
反向输出一个四位数
https://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
n = int(input())
result = ""
while n > 0:
result += str(n % 10)
n //= 10
print(result)
相关推荐