-
Notifications
You must be signed in to change notification settings - Fork 0
/
(While) Girilen Sayının Asal Çarpanlarını Yazdırma.fprg
31 lines (31 loc) · 1.42 KB
/
(While) Girilen Sayının Asal Çarpanlarını Yazdırma.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="2.11">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="LENOVO"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-01-08 01:01:55 ÖS"/>
<attribute name="created" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTA4OzEyOjU2OjIwIMOWUzsyOTk3"/>
<attribute name="edited" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTA4OzAxOjAxOjU1IMOWUzsyOzMxMDI="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="sayi, bolen" type="Integer" array="False" size=""/>
<output expression=""Asal Çarpanlarını Bulmak İstediğiniz Sayıyı Giriniz!!"" newline="True"/>
<input variable="sayi"/>
<assign variable="bolen" expression="2"/>
<while expression="sayi > 1">
<if expression="sayi % bolen == 0">
<then>
<output expression="bolen" newline="True"/>
<assign variable="sayi" expression="sayi / bolen"/>
</then>
<else>
<assign variable="bolen" expression="bolen + 1"/>
</else>
</if>
</while>
</body>
</function>
</flowgorithm>