TOPIC

Wrong answer (25%)

Pak asked 10 months ago

Alguem consegue me explicar o que esta errado ?


value = input().split(' ')
m, n = value

m = int(m)
n = int(n)
n1 = 0
while n > 0:
    while n <= m:
        print(n, end = ' ')
        n += 1
        n1 += n - 1
        if n > m:
            print('Sum=%.0f'%n1)
    value = input().split(' ')
    m, n = value
    m = int(m)
    n = int(n)
    n1 = 0
'''

This topic has not been answered yet. Be the first!

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