Ответ:
1)k=int(input())
num=0
p=1
for i in range(k):
num+=3
p*=num
print(p)
2)n=int(input())
a=[]
for i in range(len(n)):
a.append(int(input()))
count=0
sum=0
for i in a:
if i>0 and i%2==0:
p*=i
elif i<0:
count+=1
sum+=i
print(sum/count)
3)sum=0
for i in range(10,101):
if i%5==0:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
1)k=int(input())
num=0
p=1
for i in range(k):
num+=3
p*=num
print(p)
2)n=int(input())
a=[]
for i in range(len(n)):
a.append(int(input()))
count=0
sum=0
p=1
for i in a:
if i>0 and i%2==0:
p*=i
elif i<0:
count+=1
sum+=i
print(p)
print(sum/count)
3)sum=0
count=0
for i in range(10,101):
if i%5==0:
count+=1
sum+=i
print(sum/count)