Browser-based compiler and playground for C#, Progsity IDE.
C# is the main language of .NET: desktop software, web backends, and most games built on Unity. It is statically typed like Java, with LINQ for working over collections, properties instead of getters, and a large standard library.
Here your file is compiled by Mono's C# compiler and run on the Mono runtime in a sandbox. That gives you C# 7 and the classic .NET class library: System, System.Linq, System.Collections.Generic and System.Numerics for BigInteger. Newer syntax such as top-level statements or records is not part of this compiler, so keep a class with a static Main.
The judge runs C# on the same toolchain, which makes this a quick place to check a solution before you submit it.
C# (Mono 6.8). Mono's compiler supports C# 7: tuples, pattern matching, local functions, string interpolation and async are all there.
No. It is Mono, an open implementation of the .NET Framework. Code that sticks to the standard class library runs the same; features added in C# 8 and later do not compile.
Yes. Add using System.Numerics; at the top. The reference is already passed to the compiler.
No. The sandbox has no network, and a program is one file compiled against the standard library.
Yes, once you are signed in. Running code needs no account.
Tap “Try this” to load sample code into the editor above.
using System;
using System.Linq;
public class Program
{
public static void Main()
{
int[] nums = { 3, 1, 4, 1, 5, 9 };
Console.WriteLine(string.Join(" ", nums.OrderBy(n => n)));
Console.WriteLine(nums.Where(n => n % 2 == 1).Sum());
}
}using System;
public class Program
{
public static void Main()
{
string[] parts = Console.ReadLine().Split(' ');
long a = long.Parse(parts[0]);
long b = long.Parse(parts[1]);
Console.WriteLine(a + b);
}
}using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
var count = new Dictionary<string, int>();
foreach (var word in "to be or not to be".Split(' '))
{
count[word] = count.ContainsKey(word) ? count[word] + 1 : 1;
}
foreach (var pair in count)
{
Console.WriteLine(pair.Key + ": " + pair.Value);
}
}
}using System;
using System.Numerics;
public class Program
{
public static void Main()
{
BigInteger f = 1;
for (int i = 2; i <= 30; i++) f *= i;
Console.WriteLine(f);
}
}Competitive Programming for Beginners
৳3,999 ৳7,999 50% off
Live Bangla cohort starts in October · Bangla live batch · Starts Dec 5, 2026
Run your code to see output here.