Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = input("Введите число два числа до 100000: ")
- m_all_num2 = []
- m_num1 = []
- m_num2 = []
- x = num.split(" ")
- z = abs(int(x[0]))
- y = abs(int(x[1]))
- for i in list(str(y)):
- m_num1.append(int(i))
- for i in range(5):
- if i == 0:
- i = 10000
- number_1 = (z//i) % 10
- else:
- i = 10000 / (10**i)
- number_2 = int((z // i) % 10)
- m_all_num2.append(number_2)
- for num2 in m_all_num2:
- if num2 > 0:
- m_num2.append(number_2)
- break
- composition_1 = 1
- composition_2 = 1
- comp_1 = 1
- comp_2 = 1
- for e in range(len(m_num1)):
- comp_1 = composition_1*m_num1[e]
- composition_1 = comp_1
- for f in range(len(m_num2)):
- comp_2 = composition_2*m_num2[f]
- composition_2 = comp_2
- composition_end = comp_1*comp_2
- print(composition_end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement