Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Шевица
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine()); // 24
- var result = 1;
- for (int i = 2; i <= n; i++)
- {
- result = result * i;
- }
- Console.WriteLine(result);
- }
- }
- }
- // Факториел
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement