TEMA

help!!! 10% error (Apparently it works)

jsnow2 preguntado 6 years ago

x = int(input())
result = []
for i in range (x):
    c = float(input())
    dias = 0
    while c >= 1:
        dias += 1
        c = c / 2
    result.append(dias)
for j in range (len(result)):
    print(result[j],'dias')

Recuerda no enviar soluciones. Tu mensaje puede ser revisado por nuestros moderadores.

  • Nathan23 respondido 5 years ago

    the question was written a bit wrong, so just change the 'while c >= 1:' to 'while c > 1:'