TOPIC

Wrong answer (5%) Já não sei mais o que pode ser!

nnobre1 asked 3 years ago

lista = []
C = 0
while True:
    X, Y=input().split(" ")
    if (X<Y):
        lista.append("Crescente")
    if (X>Y):
        lista.append("Decrescente")
    if (X==Y):
        break
while C<len(lista):
    print(lista[C])
    C = C+1

Remember not post solutions. Your post may be reviewed by our moderators.

  • Brendo_NAVAL_UEA replied 3 years ago

    Tu precisa transformar os números em inteiros. Está comparando strings. Depois da linha 4, inclua:

    X,Y = int(X),int(Y)