-
Notifications
You must be signed in to change notification settings - Fork 0
/
24-OBEB Hesaplama 2.Yöntem.fprg
50 lines (50 loc) · 2.6 KB
/
24-OBEB Hesaplama 2.Yöntem.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
42
43
44
45
46
47
48
49
50
<?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-24 04:19:13 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0yNDsxMjo0NjoyOCDDllM7MjgwMw=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0yNDswNDoxOToxMyDDllM7MjsyOTA3"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="sayi1, sayi2, bolen, obeb" type="Integer" array="False" size=""/>
<assign variable="bolen" expression="2"/>
<assign variable="obeb" expression="1"/>
<output expression=""Lütfen OBEB hesaplamasını istediğiniz 1.Sayıyı giriniz."" newline="True"/>
<input variable="sayi1"/>
<output expression=""Lütfen OBEB hesaplanmasını istediğiniz 2. sayıyı giriniz."" newline="True"/>
<input variable="sayi2"/>
<while expression="sayi1 > 1 && sayi2 > 1">
<if expression="sayi1 % bolen == 0 && sayi2 % bolen == 0">
<then>
<assign variable="sayi1" expression="sayi1 / bolen"/>
<assign variable="sayi2" expression="sayi2 / bolen"/>
<assign variable="obeb" expression="obeb * bolen"/>
</then>
<else>
<if expression="sayi1 % bolen == 0">
<then>
<assign variable="sayi1" expression="sayi1 / bolen"/>
</then>
<else>
<if expression="sayi2 % bolen == 0">
<then>
<assign variable="sayi2" expression="sayi2 / bolen"/>
</then>
<else>
<assign variable="bolen" expression="bolen + 1"/>
</else>
</if>
</else>
</if>
</else>
</if>
</while>
<output expression=""Girmiş olduğunuz sayıların OBEB'leri: " & obeb" newline="True"/>
</body>
</function>
</flowgorithm>