This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Hello World [April 26, 2012, 1:44 a.m.]


Your first Hello World Program in F# :

Version 1:

printfn "%s" "Hello World"

Version 2:

You can use existing .NET APIs

System.Console.WriteLine("Hello, World")

Version 3:

Hello World in Windows Form

open System.Windows.Forms
open System.Drawing; 

let form = new Form(Text = "Hello, World!")
 
let label = new Label(Text = "Hello, World!")
form.Controls.Add(label)
 
Application.Run(form)