-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfactoraial_of_n_72.fprg
25 lines (25 loc) · 1.25 KB
/
factoraial_of_n_72.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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="CB.EN.U4CYS22072"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-12-02 09:34:38 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjA3MjsyMDIyMjNNQVlDMDEwMTsyMDIyLTEyLTAyOzA5OjE4OjQ4IEFNOzMwNjI="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjA3MjsyMDIyMjNNQVlDMDEwMTsyMDIyLTEyLTAyOzA5OjM0OjM4IEFNOzI7MzE2OA=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="i, n, factorial" type="Integer" array="False" size=""/>
<comment text="factorial=1*2*3...*n"/>
<assign variable="factorial" expression="1"/>
<output expression=""enter the factorial you want"" newline="True"/>
<input variable="n"/>
<for variable="i" start="1" end="n" direction="inc" step="1">
<assign variable="factorial" expression="factorial*i"/>
</for>
<output expression=""factorial of"&n&"is"&factorial" newline="True"/>
</body>
</function>
</flowgorithm>