Problem with modulo

he has already told me to use modulo operator .my dp array cannot be in int range i need to choose long or long long for sure.but when i use long or long long my modulo operaotr doesnot work how can i cast long to int or float to int.can u give me how can i cast from one data type to another for all the forms and complete details about the modulo operator?

@neha_153
Modulo : https://www.geeksforgeeks.org/modulo-1097-1000000007/
Type conversion : https://www.geeksforgeeks.org/type-conversion-in-c/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.