Why you expect it should work...? the constant you assigned to mod is not within int range
declare it as long long mod = 10000000000283LL; and it would work. On Tue, Feb 21, 2012 at 8:10 PM, Anurag Gupta <anurag.gupta...@gmail.com>wrote: > how can we take mod by a very large number > for example 10000000000283 > int mod = 10000000000283; > 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.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- -- Prakhar Jain IIIT Allahabad B.Tech IT 3rd Year Mob no: +91 9454992196 E-mail: rit2009...@iiita.ac.in jprakha...@gmail.com -- 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.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.