Files
flowgorithm/MG4_N2.fprg
2026-03-05 02:39:06 +00:00

31 lines
1.4 KiB
XML

<?xml version="1.0"?>
<flowgorithm fileversion="4.2">
<attributes>
<attribute name="name" value="PrintNLoopRev"/>
<attribute name="authors" value="yuvlian"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2026-03-05 08:53:18 AM"/>
<attribute name="created" value="eXV2bGlhbjtDT1NNT1M7MjAyNi0wMy0wNTswODo1MTowOSBBTTsyNTE0"/>
<attribute name="edited" value="eXV2bGlhbjtDT1NNT1M7MjAyNi0wMy0wNTswODo1MzoxOCBBTTsxOzI2MjQ="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="N, i, j" type="Integer" array="False" size=""/>
<input variable="N"/>
<for variable="i" start="1" end="N" direction="inc" step="1">
<for variable="j" start="1" end="i" direction="inc" step="1">
<output expression="i" newline="False"/>
</for>
<output expression="&quot;&quot;" newline="True"/>
</for>
<for variable="i" start="(N - 1)" end="1" direction="dec" step="1">
<for variable="j" start="1" end="i" direction="inc" step="1">
<output expression="i" newline="False"/>
</for>
<output expression="&quot;&quot;" newline="True"/>
</for>
</body>
</function>
</flowgorithm>