<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="FsK~XR`N@0bK}Z}Jo;,c">n</variable>
    <variable id="0(#SXhLYK|gG:DVKGDq[">p</variable>
  </variables>
  <block type="variables_set" id="ye:sMst9[=[Iji7D#bC)" x="313" y="113">
    <field name="VAR" id="FsK~XR`N@0bK}Z}Jo;,c">n</field>
    <value name="VALUE">
      <block type="procedures_callreturn" id="FL3ZnE##btsJ_r6]AQQl">
        <mutation name="input"></mutation>
      </block>
    </value>
    <next>
      <block type="variables_set" id="=K(vT1XUHdk.$.[`EfuG">
        <field name="VAR" id="0(#SXhLYK|gG:DVKGDq[">p</field>
        <value name="VALUE">
          <block type="math_number" id="i2Yq;rN]^OR!^m(8}/N0">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="controls_repeat_ext" id="r3mN,,z=;7(AFdv*m3ZQ">
            <value name="TIMES">
              <shadow type="math_number" id="i%In_{1}B#fglkaY(YSh">
                <field name="NUM">10</field>
              </shadow>
              <block type="variables_get" id="V5cw2A#jSEZtF3@=ojR[">
                <field name="VAR" id="FsK~XR`N@0bK}Z}Jo;,c">n</field>
              </block>
            </value>
            <statement name="DO">
              <block type="math_change" id="msc@XEe.mAXu0X/9Whzk">
                <field name="VAR" id="0(#SXhLYK|gG:DVKGDq[">p</field>
                <value name="DELTA">
                  <shadow type="math_number" id="H,!`;Ibe$nzN.%X,C!,#">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="procedures_callreturn" id="o?HC$Xyag#T;IFSW7O.q">
                    <mutation name="input"></mutation>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="variables_set" id="|yqOtl]TJz+w9fv+J$@/">
                <field name="VAR" id="0(#SXhLYK|gG:DVKGDq[">p</field>
                <value name="VALUE">
                  <block type="math_arithmetic" id="oxL3/a#ulEJ6Mbz!`LW_">
                    <field name="OP">MINUS</field>
                    <value name="A">
                      <shadow type="math_number" id="c5?Q6.z.gak|yFhCe3v[">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="procedures_callreturn" id="I3ucr?R/iE}pTX~JoU5;">
                        <mutation name="input"></mutation>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="P[k+e{L$Ql2s6:;f%x{i">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="variables_get" id="h$s3hkc48j~;(Ky}B!Dm">
                        <field name="VAR" id="0(#SXhLYK|gG:DVKGDq[">p</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="YEg0qTu[+Xzpn8fhSXYN">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="3pI9PQg2dI@PNzqnju-f">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="variables_get" id="c)K}z@2)Ev$*$DwZhmW7">
                            <field name="VAR" id="0(#SXhLYK|gG:DVKGDq[">p</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="5c@mgu2Ba~sJ`i_Pd@b-">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="looks_say" id="1oEs41(Y^2GEGVzNG12?">
                        <value name="TEXT">
                          <block type="variables_get" id="J|o5++0a:J[u.M%U00rh">
                            <field name="VAR" id="0(#SXhLYK|gG:DVKGDq[">p</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="looks_say" id="3v.7sHU?!$6An^C30|A!">
                        <value name="TEXT">
                          <block type="text" id="F5QKXwB[Z9`?EJ@kcJ5#">
                            <field name="TEXT">付款金額不足</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
  <block type="procedures_defreturn" id="r]t*zHPT_NZiaYK5!B1o" x="813" y="88">
    <field name="NAME">input</field>
    <comment pinned="false" h="80" w="160">描述此函式...</comment>
    <statement name="STACK">
      <block type="sensing_askandwait" id="iwl(}Ve6walS4m5-=13L"></block>
    </statement>
    <value name="RETURN">
      <block type="sensing_answer" id="[mg+Ps|0qn3;w^*Dm}(N"></block>
    </value>
  </block>
</xml>