i use the following code for factorial is that correct? but it didn't show the result
{
class Program
{
static void Main(string[] args)
{
int number = int.Parse(Console.ReadLine());
for (int i = number; i ==1; --i)
{
number = number * (i);
Console.WriteLine(number);
}
}
}
}