using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Threading;
using System.IO;
namespace CSharpProgram
{
class AkbTechie
{
static void Main(string[] args)
{
int fact = 1, num;
Console.Write("Enter The Number: ");
num = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= num; i++)
{
fact = fact * i;
}
Console.Write("Factorial of of Given Number is: " + fact);
Console.ReadKey();
}
}
}
Output:-
Enter The Number: 5
Factorial of of Given Number is: 120
0 टिप्पणियाँ