Factorial of any number in C#

This sample code will get factorial of any number the user input to this console application.

Create a Program in C# Console application for Factorial.


  1. Hi!
    Thanks for making this lovely code and function. But it doesnt work with number greater than 20, any update on that ?

Leave a Reply

Your email address will not be published. Required fields are marked *

Sajjad Arif Gul

Hi! I am Sajjad Arif Gul, Software Engineer, Web & Mobile Developer from Karachi Pakistan. I love sharing my knowledge that could possibly help someone’s life in some capacity. Happy Coding.