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