How to use Division and mod operator in C