diff --git a/Tests/test5.py b/Tests/test5.py new file mode 100644 index 0000000..fca7b08 --- /dev/null +++ b/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) +