Advertisement
Nikolay_Kashev

Big Factorial

May 27th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3.  
  4. namespace _03._Big_Factorial
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int n = int.Parse(Console.ReadLine());
  11.             BigInteger f = 1;
  12.             for (int i = 2; i <= n; i++) f *= i;
  13.             Console.WriteLine(f);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement