1.
sec = int(input())
min = sec // 60
sec = sec - min*60
print(min," мин ",sec," сек.")
2.
x = int(input())
a = x //1000
b = x//100 - a*10
c = x//10 - a*100 - b*10
d = x - a*1000 - b*100 - c*10
print("сумма:"a+b+c+d)
print("произведение:"a*b*c*d)
3.
b = x//100
c = x//10 - b*10
d = x - b*100 - c*10
y = d*100 + c*10 + b
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1.
sec = int(input())
min = sec // 60
sec = sec - min*60
print(min," мин ",sec," сек.")
2.
x = int(input())
a = x //1000
b = x//100 - a*10
c = x//10 - a*100 - b*10
d = x - a*1000 - b*100 - c*10
print("сумма:"a+b+c+d)
print("произведение:"a*b*c*d)
3.
x = int(input())
b = x//100
c = x//10 - b*10
d = x - b*100 - c*10
y = d*100 + c*10 + b