Dimo4ka Posted January 12, 2023 Posted January 12, 2023 x = 5605 y = 0 while x > 0: digit = x % 10 x = x // 10 y = y * 10 y = y + digit print(y) # 5065 1
Paul Elton Posted January 12, 2023 Posted January 12, 2023 (edited) 5067 Edited January 12, 2023 by Paul007 1
Paul Elton Posted January 13, 2023 Posted January 13, 2023 (edited) 5068 my bad Edited January 13, 2023 by Paul007 mistake 1
Recommended Posts