Run F# online — functional-first .NET, browser-hosted.
F# is Microsoft's functional-first .NET language: strong types, discriminated unions, pattern matching, type providers, and the whole .NET ecosystem underneath. Loved for data pipelines and financial modeling.
ls-judge runs F# through the .NET SDK inside a Firecracker microVM.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
[<EntryPoint>]
let main _ =
let n = System.Console.ReadLine().Trim() |> int
printfn "%d" (n * 2)
0
21
42