-
Notifications
You must be signed in to change notification settings - Fork 0
/
fibonacc series.fprg
31 lines (31 loc) · 1.6 KB
/
fibonacc series.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="CB.EN.U4CYS22065"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-12-02 10:49:05 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjA2NTsyMDIyMjNNQVlDMDEwMjsyMDIyLTEyLTAyOzEwOjM2OjA4IEFNOzMwNTM="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjA2NTsyMDIyMjNNQVlDMDEwMjsyMDIyLTEyLTAyOzEwOjQ5OjA1IEFNOzE7MzE2Mg=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="a, b, c, d, n" type="Integer" array="False" size=""/>
<output expression=""enter the value of n"" newline="True"/>
<input variable="n"/>
<assign variable="a" expression="0"/>
<assign variable="b" expression="1"/>
<assign variable="c" expression="1"/>
<while expression="c<=n">
<comment text="for i value 1 it takes the fibonac addution process and gives the output similary for n terms the output will be displayed "/>
<for variable="c" start="1" end="10" direction="inc" step="1">
<assign variable="c" expression="a+b"/>
<output expression="a&"+"&b&"="&c" newline="True"/>
<assign variable="a" expression="b"/>
<assign variable="b" expression="c"/>
</for>
</while>
</body>
</function>
</flowgorithm>