find the sum of multiples of X between A and B



x=int(input())
y=int(input())
z=int(input())
rb=0
for n in range(y,z+1):
    if n%x==0:
          rb+=n
print(rb)

Post a Comment

0 Comments