Re: [algogeeks] MODULUS

2012-02-21 Thread Prakhar Jain
Why you expect it should work...? the constant you assigned to mod is not within int range declare it as long long mod = 100283LL; and it would work. On Tue, Feb 21, 2012 at 8:10 PM, Anurag Gupta wrote: > how can we take mod by a very large number > for example 100283 > int mod

[algogeeks] MODULUS

2012-02-21 Thread Anurag Gupta
how can we take mod by a very large number for example 100283 int mod = 100283; ans % mod is not working Please Help -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups