.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> General >> Post New Resource Bookmark and Share   

 Subscribe to Articles

first program in F#

Posted By:Dhananjay Kumar       Posted Date: June 12, 2010    Points: 25    Category: General    URL: http://www.dotnetspark.com  

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

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 

1.gif
 
Step 2

In solution explorer, you can see a file Program.fs has been created for you.  

Fs are extension of F# program files. 

2.gif
 
Step 3

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

3.gif
 
Step 4

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

Program.fs

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

Step 5

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

4.gif

Conclusion 

I have shown  in this article, how to write your first F# program. I hope this post was useful. 

Thanks for reading. Happy Coding.

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend