N = int(input('Введите пятизначное число:'))
a = N //10000
b = N %10000//1000
c = N%1000//100
d = N%100//10
e = N%10
print(b+c+d)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
N = int(input('Введите пятизначное число:'))
a = N //10000
b = N %10000//1000
c = N%1000//100
d = N%100//10
e = N%10
print(b+c+d)