n = 5 # задаем размер массива
a = [0]*n # задаем массив
k = 0
for i in range(0, n):
if (a[i] % 5 == 0) and (a[i] < 100):
k += 1
a[i] = k
print(a[i])
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = 5 # задаем размер массива
a = [0]*n # задаем массив
k = 0
for i in range(0, n):
if (a[i] % 5 == 0) and (a[i] < 100):
k += 1
for i in range(0, n):
if (a[i] % 5 == 0) and (a[i] < 100):
a[i] = k
print(a[i])
print ( ... )