getting segmentation fault please tell me the correct code
https://ide.codingblocks.com/s/236056 corrected the code a bit , showing wrong answer
@rohit_1906, Don’t calculate factorial recursively, N is large, do it iteratively.