
<xml>
<block type="variables_set" inline="false" x="266" y="-92">
<title name="VAR">A</title>
<value name="VALUE">
<block type="math_number">
<title name="NUM">1</title>
</block>
</value>
<next>
<block type="variables_set" inline="false">
<title name="VAR">B</title>
<value name="VALUE">
<block type="math_number">
<title name="NUM">0</title>
</block>
</value>
<next>
<block type="variables_set" inline="false">
<title name="VAR">C</title>
<value name="VALUE">
<block type="math_number">
<title name="NUM">0</title>
</block>
</value>
<next>
<block type="variables_set" inline="false">
<title name="VAR">X</title>
<value name="VALUE">
<block type="text_prompt">
<title name="TYPE">NUMBER</title>
<title name="TEXT">要多少費式數列</title>
</block>
</value>
<next>
<block type="controls_if" inline="false">
<value name="IF0">
<block type="logic_compare" inline="true">
<title name="OP">EQ</title>
<value name="A">
<block type="variables_get">
<title name="VAR">X</title>
</block>
</value>
<value name="B">
<block type="variables_get">
<title name="VAR">D</title>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="text_print" inline="false">
<value name="TEXT">
<block type="math_number">
<title name="NUM">1</title>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" inline="false">
<value name="IF0">
<block type="logic_compare" inline="true">
<title name="OP">GT</title>
<value name="A">
<block type="variables_get">
<title name="VAR">X</title>
</block>
</value>
<value name="B">
<block type="math_number">
<title name="NUM">1</title>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_for" inline="true">
<title name="VAR">i</title>
<value name="FROM">
<block type="math_number">
<title name="NUM">1</title>
</block>
</value>
<value name="TO">
<block type="math_arithmetic" inline="true">
<title name="OP">MINUS</title>
<value name="A">
<block type="variables_get">
<title name="VAR">X</title>
</block>
</value>
<value name="B">
<block type="math_number">
<title name="NUM">1</title>
</block>
</value>
</block>
</value>
<statement name="DO">
<block type="variables_set" inline="false">
<title name="VAR">C</title>
<value name="VALUE">
<block type="math_arithmetic" inline="true">
<title name="OP">ADD</title>
<value name="A">
<block type="variables_get">
<title name="VAR">A</title>
</block>
</value>
<value name="B">
<block type="variables_get">
<title name="VAR">B</title>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" inline="false">
<title name="VAR">A</title>
<value name="VALUE">
<block type="variables_get">
<title name="VAR">C</title>
</block>
</value>
<next>
<block type="variables_set" inline="false">
<title name="VAR">B</title>
<value name="VALUE">
<block type="variables_get">
<title name="VAR">A</title>
</block>
</value>
<next>
<block type="variables_set" inline="false">
<title name="VAR">D</title>
<value name="VALUE">
<block type="variables_get">
<title name="VAR">C</title>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="text_print" inline="false">
<value name="TEXT">
<block type="variables_get">
<title name="VAR">D</title>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>