-
Notifications
You must be signed in to change notification settings - Fork 0
/
20-Girilen Sayının Asal Çarpanlarını Bulan Ve Toplamını Veren Program.fprg
41 lines (41 loc) · 2.07 KB
/
20-Girilen Sayının Asal Çarpanlarını Bulan Ve Toplamını Veren Program.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
32
33
34
35
36
37
38
39
40
41
<?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-19 05:43:13 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xOTsxMjozNzo0NiDDllM7MjgwNw=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xOTswNTo0MzoxMyDDllM7NDsyOTEx"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="sayi, bolen, toplam, birOncekiBolen" type="Integer" array="False" size=""/>
<assign variable="bolen" expression="2"/>
<assign variable="toplam" expression="0"/>
<assign variable="birOncekiBolen" expression="0"/>
<output expression=""Lütfen asal çarpanlarını bulmak istediğiniz sayıyı giriniz."" newline="True"/>
<input variable="sayi"/>
<while expression="sayi > 1">
<if expression="sayi % bolen == 0">
<then>
<assign variable="sayi" expression="sayi / bolen"/>
<if expression="bolen != birOncekiBolen">
<then>
<assign variable="toplam" expression="toplam + bolen"/>
<output expression="bolen" newline="True"/>
</then>
<else/>
</if>
<assign variable="birOncekiBolen" expression="bolen"/>
</then>
<else>
<assign variable="bolen" expression="bolen + 1"/>
</else>
</if>
</while>
<output expression=""Girmiş olduğunuz sayının asal çarpanlarının toplamı: " & toplam" newline="True"/>
</body>
</function>
</flowgorithm>