How to make this add every number %a == 0 in the loop:
b = int(input())
for i in range(0,101):
if i % b == 0 :
print(i)
I need to sum up the numbers that can be divided by the integer of b, if i type in the number 30, then i want to sum up 30 + 60 + 90
How do I do this?