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