1113.Ascending and Desending in python
This is the solution of this problem in python:
M=list()
N=list()
count=10
pcount=0
for i in range(0,count):
r,s=input().split()
M.append(r)
N.append(s)
tm=int(M[i])
tn=int(N[i])
if(tm==tn):
break
else:
pcount+=1
for i in range(0,pcount):
summ=0
x=int(M[i])
y=int(N[i])
if(x>y):
print("Decrescente")
else:
print("Crescente")
No comments