-
Notifications
You must be signed in to change notification settings - Fork 0
/
Displaying_array_elements.fprg
31 lines (31 loc) · 1.57 KB
/
Displaying_array_elements.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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="HP"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-12-09 10:48:15 AM"/>
<attribute name="created" value="SFA7REVTS1RPUC1MM1JERUtGOzIwMjItMTItMDk7MDk6MTg6MzggQU07MjUwMg=="/>
<attribute name="edited" value="SFA7REVTS1RPUC1MM1JERUtGOzIwMjItMTItMDk7MTA6NDg6MTUgQU07NzsyNjA2"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<comment text="Declaring array"/>
<declare name="array" type="Integer" array="True" size="10"/>
<comment text="Declaring variables "/>
<declare name="input, x" type="Integer" array="False" size=""/>
<comment text="For loop for taking input"/>
<for variable="x" start="0" end="9" direction="inc" step="1">
<output expression=""Enter "&x+1&" integer value"" newline="True"/>
<input variable="input"/>
<comment text="assigning values in array "/>
<assign variable="array[x]" expression="input"/>
</for>
<comment text="For loop for writing output"/>
<for variable="x" start="0" end="9" direction="inc" step="1">
<output expression=""The value of "&x+1& " integer is"&array[x]" newline="True"/>
</for>
</body>
</function>
</flowgorithm>