<?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-10 08:03:39 odp."/>
        <attribute name="created" value="Zm94O1VLMzE4UFI7MjAxOS0xMi0yOTsxMDozMzowNSBvZHAuOzIzMDU="/>
        <attribute name="edited" value="Zm94O1VLMzE4UFI7MjAyMC0wMS0xMDswODowMzozOSBvZHAuOzU7MjQwOA=="/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <comment text="Deklarace prom&#283;nn&#253;ch: 'kod' ... k&#243;d aritmetick&#233; operace; 'a' ... prvn&#237; zadan&#233; &#269;&#237;slo, 'b' ... druh&#233; zadan&#233; &#269;&#237;slo, 'c' ... v&#253;sledek v&#253;po&#269;tu"/>
            <declare name="kod" type="Integer" array="False" size=""/>
            <declare name="a" type="Integer" array="False" size=""/>
            <declare name="b" type="Integer" array="False" size=""/>
            <declare name="c" type="Real" array="False" size=""/>
            <comment text="Vyps&#225;n&#237; k&#243;d&#367; aritmetick&#253;ch operac&#237;  na obrazovku"/>
            <output expression="&quot;Zadejte k&#243;d operace (1 &#8230; s&#269;&#237;t&#225;n&#237;, 2 &#8230; ode&#269;&#237;t&#225;n&#237;, 3 &#8230; n&#225;soben&#237;, 4 &#8230; d&#283;len&#237;):&quot;" newline="True"/>
            <comment text="Na&#269;ten&#237; k&#243;du zadan&#233;ho u&#382;ivatelem do prom&#283;nn&#233; kod"/>
            <input variable="kod"/>
            <comment text="Vyps&#225;n&#237; v&#253;zvy pro zad&#225;n&#237; prvn&#237;ho &#269;&#237;sla"/>
            <output expression="&quot;Zadejte A: &quot;" newline="True"/>
            <comment text="Na&#269;ten&#237; prvn&#237;ho zadan&#233;ho &#269;&#237;sla"/>
            <input variable="a"/>
            <comment text="Vyps&#225;n&#237; v&#253;zvy pro zad&#225;n&#237; druh&#233;ho &#269;&#237;sla"/>
            <output expression="&quot;Zadejte B: &quot;" newline="True"/>
            <comment text="Na&#269;ten&#237; druh&#233; zadan&#233;ho &#269;&#237;sla"/>
            <input variable="b"/>
            <comment text="V&#237;cen&#225;sobn&#233; v&#283;tven&#237;"/>
            <if expression="kod == 1">
                <then>
                    <comment text="Se&#269;ten&#237; zadan&#253;ch &#269;&#237;sel"/>
                    <assign variable="c" expression="a+b"/>
                </then>
                <else>
                    <if expression="kod == 2">
                        <then>
                            <comment text="Ode&#269;ten&#237; zadan&#253;ch &#269;&#237;sel"/>
                            <assign variable="c" expression="a - b"/>
                        </then>
                        <else>
                            <if expression="kod == 3">
                                <then>
                                    <comment text="N&#225;soben&#237; zadan&#253;ch &#269;&#237;sel"/>
                                    <assign variable="c" expression="a * b"/>
                                </then>
                                <else>
                                    <if expression="kod == 4">
                                        <then>
                                            <comment text="Pod&#237;l zadan&#253;ch &#269;&#237;sel"/>
                                            <assign variable="c" expression="a / b"/>
                                        </then>
                                        <else>
                                            <comment text="U&#382;ivatel zadal jin&#253; k&#243;d ne&#382; 1 a&#382; 4"/>
                                            <output expression="&quot;Zadali jste &#353;patn&#253; &#269;&#237;seln&#253; k&#243;d!&quot;" newline="True"/>
                                        </else>
                                    </if>
                                </else>
                            </if>
                        </else>
                    </if>
                </else>
            </if>
            <comment text="V&#253;pis textu a hodnoty v&#253;sledku"/>
            <output expression="&quot;V&#253;sledek C: &quot; &amp; c" newline="True"/>
            <comment text="Ukon&#269;en&#237; hlavn&#237;ho programu"/>
        </body>
    </function>
</flowgorithm>
