I have a doubt that what kind of loop will be efficient to perform operation like factorial hen the number is big and vice versa!
I tried for loop and while loop. google is suggesting to write a closure function.
so suggest me some ideas.
New contributor
Brijith Keran K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2