<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="bomal"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2023-04-24 01:57:09 "/>
        <attribute name="created" value="Ym9tYWw7TVNJOzIwMjMtMDQtMjQ7IjAxOjQwOjMxICI7MTkzNw=="/>
        <attribute name="edited" value="Ym9tYWw7TVNJOzIwMjMtMDQtMjQ7IjAxOjU3OjA5ICI7MTsyMDU4"/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="p1, p, c, p0" type="Real" array="False" size=""/>
            <assign variable="p" expression="0"/>
            <assign variable="c" expression="0"/>
            <output expression="&quot;inserisci il prezzo del prodotto&quot;" newline="True"/>
            <input variable="p1"/>
            <while expression="(p1&lt;-0.1)">
                <output expression="&quot;inserisci il prezzo del prodotto&quot;" newline="True"/>
                <input variable="p1"/>
            </while>
            <assign variable="p" expression="p+p1"/>
            <while expression="!(p1==0)">
                <output expression="&quot;inserisci il prezzo del prodotto, per terminare scrivi 0&quot;" newline="True"/>
                <input variable="p1"/>
                <assign variable="p" expression="p+p1"/>
                <assign variable="c" expression="c+1"/>
            </while>
            <if expression="(c&lt;5)">
                <then>
                    <assign variable="p0" expression="p-(p*1/4)"/>
                    <output expression="&quot;prezzo = &quot; &amp; p0" newline="True"/>
                </then>
                <else>
                    <assign variable="p0" expression="p-(p*35/100)"/>
                    <output expression="&quot;prezzo = &quot; &amp; p0" newline="True"/>
                </else>
            </if>
        </body>
    </function>
</flowgorithm>
