Https://ide.codingblocks.com/#/s/17035

https://ide.codingblocks.com/#/s/17035 , this is my code id for factoSum ,please tell me wht is wrong with it and url for question is https://online.codingblocks.com/player/2834/content/786?s=372

u have to take modulus in every step u are multiplying
example if u are cal. 100 factorial u cannot cal. it by a loop or rec. as u cant store its value even in long long as it has 158 digit so u hvae to take modulus at every step u are multiplying

1 Like