Ответ:
Python
n=10
C=(64,13,22,54,21,73,24,45,22,81)
print(C)
print('Min ', min(C), 'Index =', C.index(min(C)))
A=[0]*n
for i in range (0, n):
if C[i]%2==0:
A[i]=C[i]+5
else:
A[i]=C[i]-5
print(A)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Python
n=10
C=(64,13,22,54,21,73,24,45,22,81)
print(C)
print('Min ', min(C), 'Index =', C.index(min(C)))
A=[0]*n
for i in range (0, n):
if C[i]%2==0:
A[i]=C[i]+5
else:
A[i]=C[i]-5
print(A)