<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="burrin"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2021-11-18 05:46:49 PM"/>
        <attribute name="created" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIwLTEwLTI3OzA2OjMyOjU1IFBNOzI5NDU="/>
        <attribute name="edited" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIxLTExLTE4OzA1OjQ2OjQ5IFBNOzU7MzA2Ng=="/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="myInt" type="Integer" array="False" size=""/>
            <input variable="myInt"/>
            <output expression="reverse(myInt)" newline="True"/>
        </body>
    </function>
    <function name="reverse" type="Integer" variable="RNum">
        <parameters>
            <parameter name="Num" type="Integer" array="False"/>
        </parameters>
        <body>
            <declare name="NumStr" type="String" array="False" size=""/>
            <declare name="Rtext" type="String" array="False" size=""/>
            <declare name="Rnum" type="Integer" array="False" size=""/>
            <assign variable="Rtext" expression="&quot;&quot;"/>
            <declare name="i" type="Integer" array="False" size=""/>
            <assign variable="NumStr" expression="ToString(Num)"/>
            <for variable="i" start="1" end="len(NumStr)" direction="inc" step="1">
                <assign variable="Rtext" expression="Rtext &amp; Char(NumStr,len(NumStr)-i)"/>
            </for>
            <assign variable="Rnum" expression="ToInteger(Rtext)"/>
        </body>
    </function>
</flowgorithm>
