-
Notifications
You must be signed in to change notification settings - Fork 0
/
15-Faktoriyel Hesaplama.fprg
24 lines (24 loc) · 1.27 KB
/
15-Faktoriyel Hesaplama.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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="husey"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2023-08-16 10:25:15 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xNjsxMDoyMTo0NyDDllM7Mjc5Ng=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xNjsxMDoyNToxNSDDllM7MTsyOTAz"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="sayac, sayi, faktoriyel" type="Integer" array="False" size=""/>
<assign variable="faktoriyel" expression="1"/>
<output expression=""Lütfen faktoriyelini hesaplayacağınız sayıyı giriniz."" newline="True"/>
<input variable="sayi"/>
<for variable="sayac" start="1" end="sayi" direction="inc" step="1">
<assign variable="faktoriyel" expression="faktoriyel * sayac"/>
</for>
<output expression=""Girmiş olduğunuz sayının faktoriyel değeri: " & faktoriyel" newline="True"/>
</body>
</function>
</flowgorithm>