<?xml version="1.0"?>
<flowgorithm fileversion="2.6">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="BurrinD"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2017-11-14 08:31:53 PM"/>
        <attribute name="created" value="QnVycmluRDsgRE5UVkEtQVdLLVNXUjE2OyAyMDE3LTExLTE0OyAxMTo0ODoyNSBBTTsgMzExMA=="/>
        <attribute name="edited" value="RGFtaWFuOyBEQU1JQU4tUEM7IDIwMTctMTEtMTQ7IDA4OjMxOjUzIFBNOyAyNTgx"/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="unsortedlist" type="Integer" array="True" size="5"/>
            <declare name="temp" type="Integer" array="False" size=""/>
            <declare name="item" type="Integer" array="False" size=""/>
            <assign variable="unsortedlist[0]" expression="17"/>
            <assign variable="unsortedlist[1]" expression="5"/>
            <assign variable="unsortedlist[2]" expression="6"/>
            <assign variable="unsortedlist[3]" expression="5"/>
            <assign variable="unsortedlist[4]" expression="1"/>
            <declare name="SWAPPED" type="Boolean" array="False" size=""/>
            <assign variable="SWAPPED" expression="True"/>
            <output expression="&quot;Unsorted&quot;"/>
            <for variable="item" start="0" end="size(unsortedlist)-1" direction="inc" step="1">
                <output expression="unsortedlist[item]"/>
            </for>
            <while expression="SWAPPED = True">
                <assign variable="SWAPPED" expression="False"/>
                <for variable="item" start="0" end="size(unsortedlist)-2" direction="inc" step="1">
                    <if expression="unsortedlist[item] &gt; unsortedlist[item+1]">
                        <then>
                            <assign variable="temp" expression="unsortedlist[item]"/>
                            <assign variable="unsortedlist[item]" expression="unsortedlist[item+1]"/>
                            <assign variable="unsortedlist[item+1]" expression="temp"/>
                            <assign variable="SWAPPED" expression="True"/>
                        </then>
                        <else/>
                    </if>
                </for>
            </while>
            <output expression="&quot;Sorted&quot;"/>
            <for variable="item" start="0" end="size(unsortedlist)-1" direction="inc" step="1">
                <output expression="unsortedlist[item]"/>
            </for>
        </body>
    </function>
</flowgorithm>