how to take large values modulo k

How do I take large values modulo k using scanf
eg:let k=100007;
how do i take a number which may >k and exceeds the range of long long

@aniruddha_paul :
U can refer the below link for your question.

6 Likes

very much helpful thanku :slight_smile: