Write Antril, run it in your browser and share it with a link. Programs are compiled to WebAssembly and run on your machine, not on the server.
Running programs is unavailable right now: the WebAssembly linker (wasm-ld, part of LLVM) is not installed on this server. You can still write, share and download code.
importSystem;
Main()
{
f64 price = 3.14159;
i32 n = 42;
str name = "Ana";
Console.WriteLine($"{name} has {n} items at {price:F2}");
Console.WriteLine($"[{n,6}] [{n,-6}] [{price,8:F1}]");
Console.WriteLine($"{{braces}} {n * 2}{(n > 40 ? 1 : 0)}{n:X}");
Console.WriteLine($"{name.ToUpper()}{$"[{n}]"}");
}
Output
Press Run (or Ctrl+Enter) to compile and run the program.
Input
What Console.ReadLine() reads, one line at a time.
Ctrl+Enter runs. Tab indents (Shift+Tab outdents); press Esc, then Tab, to leave the editor. A program may run for 10 seconds.