> For the complete documentation index, see [llms.txt](https://go.netdpi.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://go.netdpi.net/variable/0404_question.md).

# 04.06-問題

* 建立新變數的兩種方式為何？
* 執行後的 `x` 值是多少：\
  `x := 5; x += 1`?
* Scope 是什麼？你如何確定 Go 語言變數的 scope 呢？
* `var` 與 `const` 的差異為何？
* 使用範例程式做為一個起點，寫個程式將華氏轉為攝氏 (`C = (F - 32) * 5/9`)。
* 另外寫個程式將英尺 (ft) 轉換為公尺 (m) (`1 ft = 0.3048 m`)。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://go.netdpi.net/variable/0404_question.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
