Ответ:
from array import *
x = array('i', [1, 33, -5])
min=x[0]
max=x[0]
for i in x:
if max<i:
max=i
if min>i:
min=i
print ('min=',min,'max=',max)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
from array import *
x = array('i', [1, 33, -5])
min=x[0]
max=x[0]
for i in x:
if max<i:
max=i
if min>i:
min=i
print ('min=',min,'max=',max)