Repeat 指令

来自GeoGebra Manual
跳转至: 导航搜索
Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


Repeat( <數值 n>, <程式碼>, <程式碼>, ... )
重複執行 <程式碼> n 次。
範例:
Turtle()
點選繪圖區左下角的 Animate Play.png 播放按鈕。
Repeat(8, TurtleForward(turtle1, 1), TurtleRight(turtle1, 45°))
烏龜將會移動並畫出一個正八邊形。
© 2024 International GeoGebra Institute