Conditionals returning false even when it is true. I used elsif

What is wrong with my code?

I am getting false as my output even when the condition is true. Please help me out. I have looked at the solution and they do not use elsif.

I see it, it is because I used divided by instead of %