Getting WA in Make it divisible Can Anyone Please help me

I have been getting wrong answers on my problem Make it Divisible | CodeChef)
Can Anyone look at it and explain me whats really going wrong.Because the logic of my program seems to satisfy specificied in the question.
heres my codeā€¦ Solution: 51421039 | CodeChef
Thanks in AdvancešŸ˜Š

you can look at my solution
https://www.codechef.com/viewsolution/51408229

Consider the test input:

1
20

Hi , why canā€™t we output
3
15
105
1005 and so on for different values of N starting from 1

Nobody said we canā€™t. Looks legit to me.

1 Like