Python:
#
# NaaMan
x=[0.3,5,68,-3,32,-80,-9,-26,-9,40,36,13,15,28,-0.7,-36,-0.3,8,15,-7]
b = 5
p = 1
count = 0
for i in x:
if i!=0 and i<b:
count += 1
p = p * i
print('Колво - %d, произведение - %f'%(count,p))
Объяснение:
Python:
#
# NaaMan
x=[0.3,5,68,-3,32,-80,-9,-26,-9,40,36,13,15,28,-0.7,-36,-0.3,8,15,-7]
b = 5
p = 1
count = 0
for i in x:
if i!=0 and i<b:
count += 1
p = p * i
print('Колво - %d, произведение - %f'%(count,p))
Объяснение: