num = None
por = 1
has_num = 0
while num != -1:
num = int(input())
if num % 7 == 0 and has_num == 0:
has_num = por
por += 1
if has_num != 0:
print(has_num)
else:
print('Нет таких чисел')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
num = None
por = 1
has_num = 0
while num != -1:
num = int(input())
if num % 7 == 0 and has_num == 0:
has_num = por
por += 1
if has_num != 0:
print(has_num)
else:
print('Нет таких чисел')