-
Notifications
You must be signed in to change notification settings - Fork 0
/
34- Kullanıcıdan Alınan 5 Adet Sayıyı Sıralayan Program.fprg
37 lines (37 loc) · 1.91 KB
/
34- Kullanıcıdan Alınan 5 Adet Sayıyı Sıralayan 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
<?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-09-02 02:27:41 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOS0wMjswMjoxMDo0OCDDllM7Mjc5Mg=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOS0wMjswMjoyNzo0MSDDllM7MjsyOTAy"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="i, j, k, l, gecici, sayi" type="Integer" array="False" size=""/>
<declare name="sayilar" type="Integer" array="True" size="5"/>
<for variable="l" start="0" end="4" direction="inc" step="1">
<output expression=""Lütfen " & l + 1 & "." & " sayıyı giriniz: "" newline="True"/>
<input variable="sayilar[l]"/>
</for>
<for variable="i" start="0" end="3" direction="inc" step="1">
<for variable="j" start="0" end="3" direction="inc" step="1">
<if expression="sayilar[j] > sayilar[j + 1]">
<then>
<assign variable="gecici" expression="sayilar[j]"/>
<assign variable="sayilar[j]" expression="sayilar[j + 1]"/>
<assign variable="sayilar[j + 1]" expression="gecici"/>
</then>
<else/>
</if>
</for>
</for>
<for variable="k" start="0" end="4" direction="inc" step="1">
<output expression="k + 1 & "." & "Sayı: " & sayilar[k]" newline="True"/>
</for>
</body>
</function>
</flowgorithm>