Enter a number and two factors to find the sum of the multiples for some reason.

I had difficulty with getting this to work so I had to de-factor my code. It shows.