Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace faktoriel
- {
- class Faktoriel
- {
- static void Main(string[] args)
- {
- Console.Write("Въведи число :");
- int number = int.Parse(Console.ReadLine());
- System.Numerics.BigInteger faktoriel = number;
- for (int counter = 1; counter < number; counter++)
- {
- faktoriel = faktoriel * counter;
- }
- Console.WriteLine(faktoriel);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement