Run ❯
Get your
own C#
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
using System; namespace MyApplication { class Program { static void Main(string[] args) { int n = 5; long factorial = 1; for (int i = 1; i <= n; i++) { factorial *= i; } Console.WriteLine("Factorial of " + n + " is " + factorial); } } }
Factorial of 5 is 120