> For the complete documentation index, see [llms.txt](https://kurohasu.gitbook.io/fsharpabout/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kurohasu.gitbook.io/fsharpabout/basic/hello-f.md).

# "Hello F#!!"

F#ではCのprintf()と同じようにprintfn を使って出力します

```fsharp
// 構文：printfn <値> 
printfn "Hello F#!!\n"
//Hello F#!!と表示されます
```

「[`はじめに`](/fsharpabout/helloworld.md)」でも記述したように.NET frameworkの機能も使えるので\
C#で使うConsole.WriteLine()も使えます

```fsharp
// 定義前にsystemモジュールを宣言する必要があります(open Systemと記述)
//構文:Console.WriteLine(<値>)
open System
Console.WriteLine("Hello F#!!\n")
exit 0
```

「exit 0」と記述することで明示的にプログラムを終了させることが出来ます

値は次ページで解説します
