<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="fox"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2020-01-05 09:35:35 odp."/>
        <attribute name="created" value="Zm94O1VLMzE4UFI7MjAyMC0wMS0wNTswOTowMzoxOCBvZHAuOzIyOTg="/>
        <attribute name="edited" value="Zm94O1VLMzE4UFI7MjAyMC0wMS0wNTswOTozNTozNSBvZHAuOzU7MjQxNA=="/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <comment text="Deklarace prom&#283;nn&#253;ch: 'iterace' ... &#269;&#237;slo iterace; 'n' ... cel&#233; &#269;&#237;slo ve vn&#283;j&#353;&#237;m cyklu p&#345;edstavuje d&#283;litele, ve vnit&#345;n&#237;m cyklu hodnotu um&#237;st&#283;nou ve v&#253;razu v z&#225;vorce; 'x' ... prvn&#237; re&#225;ln&#233; &#269;&#237;slo (!!! v C# vyberte datov&#253; typ float); 'y' ... druh&#233; re&#225;ln&#233; &#269;&#237;slo (!!! v C# vyberte datov&#253; typ double)"/>
            <declare name="iterace" type="Integer" array="False" size=""/>
            <declare name="n" type="Integer" array="False" size=""/>
            <declare name="x" type="Real" array="False" size=""/>
            <declare name="y" type="Real" array="False" size=""/>
            <comment text="Vn&#283;j&#353;&#237; cyklus s krokem pro zvy&#353;ov&#225;n&#237; 'n'"/>
            <for variable="n" start="1" end="10" direction="inc" step="1">
                <comment text="V&#253;po&#269;et x pomoc&#237; d&#283;len&#237; '1/n' (v C# mus&#237;te u dat. typu float pou&#382;&#237;t tzv. liter&#225;l, tj. 1.0F) "/>
                <assign variable="x" expression="1.0 / n"/>
                <comment text="V&#253;po&#269;et y pomoc&#237; d&#283;len&#237; '1/n'"/>
                <assign variable="y" expression="1.0 / n"/>
                <comment text="Vno&#345;en&#253; cyklus s krokem pro jednotliv&#233; iterace"/>
                <for variable="iterace" start="1" end="30" direction="inc" step="1">
                    <comment text="V&#253;po&#269;et 'x' pomoc&#237; dosazen&#237; aktu&#225;ln&#237; hodnoty 'x'. Po&#269;&#225;te&#269;n&#237; hodnota 'x' byla nastavena ve vn&#283;j&#353;&#237;m cyklu "/>
                    <assign variable="x" expression="(n + 1) * x - 1"/>
                    <comment text="V&#253;po&#269;et 'y' pomoc&#237; dosazen&#237; aktu&#225;ln&#237; hodnoty 'y'. Po&#269;&#225;te&#269;n&#237; hodnota 'y' byla nastavena ve vn&#283;j&#353;&#237;m cyklu "/>
                    <assign variable="y" expression="(n + 1) * y - 1"/>
                    <comment text="V&#253;pis hodnot ulo&#382;en&#253;ch v jednotliv&#253;ch prom&#283;nn&#253;ch"/>
                    <output expression="&quot;n = &quot; &amp; n &amp; &quot;; i = &quot; &amp; iterace &amp;&quot;; x = &quot; &amp; x &amp; &quot;; y = &quot; &amp; y" newline="True"/>
                    <comment text="Vypsali jsme 10 &#345;&#225;dk&#367; s v&#253;sledky (prob&#283;hlo 10 iterac&#237;)?"/>
                    <if expression="iterace % 10 == 0">
                        <then>
                            <comment text="Vlo&#382;en&#237; pr&#225;zdn&#233; &#345;&#225;dky kv&#367;li vizu&#225;ln&#237;mu odd&#283;len&#237; &#345;&#225;dk&#367; s v&#253;pisy v&#253;sledk&#367;"/>
                            <output expression="ToChar(10)" newline="False"/>
                        </then>
                        <else/>
                    </if>
                </for>
            </for>
        </body>
    </function>
</flowgorithm>
