![.NET Core 2.0 By Example](https://wfqqreader-1252317822.image.myqcloud.com/cover/114/36700114/b_36700114.jpg)
上QQ阅读APP看书,第一时间看更新
Basic input/output syntax
We are now going to see how to write and read in F#. To read and write into the console, we can use the following commands:
- To write: System.Console.Write("Welcome!")
- To read: System.Console.Read()
- To print: printfn "Hello"
Let's compare F# with C#:
![](https://epubservercos.yuewen.com/6A2970/19470396201580706/epubprivate/OEBPS/Images/007.jpg?sign=1739287696-EyPYZsuUbcPhpCPKPBRRFu86hzjgiBSh-0-9391b22028218ece013217d3038b82ef)