Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace BigFactorial
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- BigInteger factorial = 1;
- for (int i = 1; i <= num; i++)
- {
- factorial *= i;
- }
- Console.WriteLine(factorial);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement