An MBA in finance imparts and improves management aptitude, inventive ability, critical thinking ability, and so forth. It offers a real-time experience that fabricates a staunch career foundation for students and working professionals. It helps them to thoroughly understand the financial sector.
using System;
public class Program
{
public static void Main()
{
Program pr = new Program();
long fact = pr.factorial(10);
Console.WriteLine('factorial of {0} is : {1}',10,fact);
}
public long factorial(long n) {
if (n == 1)
return 1;
else
return (n * factorial(n - 1));
}
}
Output.
factorial of 10 is : 3628800
Liked By
Write Answer
How to find factorial of an integer in C# using recursion?
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Ravi Vishwakarma
18-Nov-2021Output.
factorial of 10 is : 3628800