Hello World F# program

No.of Views647
Bookmarked0 times
Downloads 
Votes0
By  Dhananjay Kumar   On  18 Jun 2010 10:06:14
Tag : F# , General
This is very basic article, which will give demonstration on how to write first F# program
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Objective

This is very basic article, which will give demonstration on how to write first F# program

Step 1

Open visual studio 2010 create new F# application by selecting   F# Application project template in Windows tab under Visual F# language category 

Image Loading

Step 2

In solution explorer, you can see a file Program.fs has been created for you. 
Fs are extension of F# program files. 

Image Loading

Step 3

When you click on Program.fs, you can see a blank F# editor will be open. 

Image Loading

Step 4

Print Hello World in F# code in F# editor.

Program.fs

// Learn more about F# at http://fsharp.netprintfn "Hello World to F# language "

 Step 5

Run the F# program by pressing ctrl + F5. You will get the output as below, 

Image Loading

Conclusion

I shown   in this article, How to write your first F# program. I hope this post was useful. Thanks for reading. Happy Coding.

 
Sign Up to vote for this article
 
About Author
 
Dhananjay Kumar
Occupation-Software Engineer
Company-Infosys Technolgies,Pune
Member Type-Gold
Location-India
Joined date-20 Jul 2009
Home Page-http://dhananjaykumar.net/
Blog Page-http://dhananjaykumar.net/
Dhananjay Kumar is Microsoft MVP on connected system. He blogs at http://dhananjaykumar.net/ . You can follow him http://twitter.com/debugmode_/ and reach him at dhananjay.25july@gmail.com
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top