1. You have no such if expression in your code that you've posted. If you want to do something repeatedly, then you need to put it in a loop (if is not a loop).
2. Then you need to use / and % in a more appropriate manner.
3. Only if you want to get the right answer.