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