Ладно давай без массивов попробуем на питоне:
PastNum = int (input ())
Progress = True
NumOfProgress = 0
if PastNum != 0:
thisNum = int (input ())
NumOfProgress = thisNum / PastNum
while thisNum != 0:
PastNum = thisNum
if thisNum == 0:
break;
if thisNum / PastNum != NumOfProgress:
Progress = False;
if Progress == False:
print ("It isn't a progress");
else:
print ("It's a progress");
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ладно давай без массивов попробуем на питоне:
PastNum = int (input ())
Progress = True
NumOfProgress = 0
if PastNum != 0:
thisNum = int (input ())
NumOfProgress = thisNum / PastNum
while thisNum != 0:
PastNum = thisNum
thisNum = int (input ())
if thisNum == 0:
break;
if thisNum / PastNum != NumOfProgress:
Progress = False;
if Progress == False:
print ("It isn't a progress");
else:
print ("It's a progress");