Программа:
Python:
from random import randint
N = int(input())
arr = [randint(-100, 100) for i in range(0, N)]
s = 0
for i in arr:
if i < -10 or i > 10:
s += 1
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Python:
from random import randint
N = int(input())
arr = [randint(-100, 100) for i in range(0, N)]
s = 0
for i in arr:
if i < -10 or i > 10:
s += 1
print(s)