-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharrayDemoWithoutFunctions.fprg
30 lines (30 loc) · 1.55 KB
/
arrayDemoWithoutFunctions.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
<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="admin"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2019-10-05 07:09:30 "/>
<attribute name="created" value="YWRtaW47QURNSU4tUEM7MjAxOS0xMC0wNTsiMDc6MDE6MTYgIjsyMjYy"/>
<attribute name="edited" value="YWRtaW47QURNSU4tUEM7MjAxOS0xMC0wNTsiMDc6MDk6MzAgIjsxOzIzNzQ="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="n" type="Integer" array="False" size=""/>
<output expression=""Please enter the array size: "" newline="True"/>
<input variable="n"/>
<declare name="friends" type="String" array="True" size="n"/>
<declare name="friendName" type="String" array="False" size=""/>
<declare name="i" type="Integer" array="False" size=""/>
<for variable="i" start="0" end="Size(friends) - 1" direction="inc" step="1">
<output expression=""Please enter a new name"" newline="True"/>
<input variable="friendName"/>
<assign variable="friends[i]" expression="friendName"/>
</for>
<for variable="i" start="0" end="Size(friends) - 1" direction="inc" step="1">
<output expression=""Array[" & i & "] = " & friends[i]" newline="True"/>
</for>
</body>
</function>
</flowgorithm>