WebHosting

Wednesday, June 29, 2011

F# Hello world example

  1. On the File menu, point to New, and then click Project.

  2. If you cannot see Visual F# in the Templates Categories pane, click Other Languages, and then click Visual F#. The Templates pane in the center lists the F# templates.

  3. Look at the top of the Templates pane to make sure that .NET Framework 4 appears in the Target Framework box.

  4. Click F# Application in the list of templates.

  5. Type a name for your project in the Name field.

  6. Click OK.






printfn "Hello World to F# language "


// Declare a local value (inferred type is string)
let world = "world"

// Using '%s' format specifier to include string parameter
printfn "Hello %s!" world

Featured Posts

किसके हिस्से में में ये धरती

चिड़ियों का घर जल रहा है  इंसान खुश है कि ये आग दूर है अभी कभी तो आएगी घर तक  तेरा भी घर जलेगा कभी बेजुबान है कुछ बोलते नहीं है दिल में दुख ...