-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlargestnumarray.fprg
35 lines (35 loc) · 1.75 KB
/
largestnumarray.fprg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="deepak"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-12-09 11:02:08 AM"/>
<attribute name="created" value="ZGVlcGFrO0RFRVBBS0tVTUFSOzIwMjItMTItMDk7MDk6NTQ6NTQgQU07MjcwMg=="/>
<attribute name="edited" value="ZGVlcGFrO0RFRVBBS0tVTUFSOzIwMjItMTItMDk7MDk6NTY6MDggQU07MTtkZWVwYWs7REVFUEFLS1VNQVI7MjAyMi0xMi0wODsxMTo1MTo0OSBQTTtBcnJheS5mcHJnOzY2Mjc="/>
<attribute name="edited" value="ZGVlcGFrO0RFRVBBS0tVTUFSOzIwMjItMTItMDk7MDk6NTk6NTAgQU07MTsyODEx"/>
<attribute name="edited" value="QW5hbnRoO0RFU0tUT1AtOEQ2U1ZFRzsyMDIyLTEyLTA5OzExOjAyOjA4IEFNOzI7MzA0MA=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="x" type="Real" array="True" size="10"/>
<declare name="y, z, v" type="Integer" array="False" size=""/>
<for variable="y" start="0" end="9" direction="inc" step="1">
<output expression=""Enter the number in index "&y+1&" :"" newline="True"/>
<input variable="z"/>
<assign variable="x[y]" expression="z"/>
</for>
<assign variable="v" expression="0"/>
<for variable="y" start="0" end="9" direction="inc" step="1">
<if expression="v<x[y]">
<then>
<assign variable="v" expression="x[y]"/>
</then>
<else/>
</if>
</for>
<output expression="v" newline="True"/>
</body>
</function>
</flowgorithm>