def total(N):
    i = 1
    s = 0
    while i <= N:
        s = s + i
        i = i + 1
    return s
total(10)
total(100)
