<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Godot (game engine) - Page 18 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Godot_(game_engine)&amp;p=17">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Godot_%28game_engine%29&amp;p=19">3.Next</a>
</p>

<p>A simple variable with either dynamic or static typing can be written as:<syntaxhighlight lang="gdscript">	var hello = 12    var bye: int = 13</syntaxhighlight>And a <a href="page.php?w=Constant_%28computer_programming%29">constant</a> can be written as:<syntaxhighlight lang="gdscript">	const HELLO = 12    const BYE: int = 13</syntaxhighlight></p>

<p>An example of a more complex program that generates the <a href="page.php?w=Fibonacci_number">Fibonacci sequence</a> is:<syntaxhighlight lang="gdscript">func _ready() -> void:	var nterms: int = 5	print("Fibonacci sequence:")	for i: int in range(nterms):		print(fibonacci(i))</syntaxhighlight></p><p>
<a accesskey="1" href="page.php?w=Godot_(game_engine)&amp;p=17">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Godot_%28game_engine%29&amp;p=19">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
