You are viewing a single comment's thread. Return to all comments →
This would do it in python:
x = int(input("your input"))
sum = 0 for i in range(1, x + 1): if x % i == 0: sum += i else: i += 1 return sum
Seems like cookies are disabled on this browser, please enable them to open this website
Day 19: Interfaces
You are viewing a single comment's thread. Return to all comments →
This would do it in python:
x = int(input("your input"))
sum = 0 for i in range(1, x + 1): if x % i == 0: sum += i else: i += 1 return sum