Защита 5-ой лабораторной работы

Этот коммит содержится в:
Пользователь № 5 аудитории Ж-113
2025-10-27 10:17:16 +03:00
родитель f19dbed3ff
Коммит 144cb92809

13
Tests/test5.py Обычный файл
Просмотреть файл

@@ -0,0 +1,13 @@
sps = []
fl = True
while fl:
n = int(input())
sps.append(n)
if (sps[0]>0 and sps[1]<0) or (sps[0]<0 and sps[1]>0):
print("Знаки должны совпвдвть")
sps.pop()
continue
if len(sps)==2:
break
print(sps)