-
Notifications
You must be signed in to change notification settings - Fork 0
/
35-Kullanıcıdan Alınan Sayı Adedince Sayıyı Tersten Yazan Program.fprg
35 lines (35 loc) · 2.17 KB
/
35-Kullanıcıdan Alınan Sayı Adedince Sayıyı Tersten Yazan 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
<?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-03 03:18:20 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOS0wMzswMjo0OTowOSDDllM7MjgwMg=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOS0wMzswMzoxODoyMCDDllM7MTsyOTAw"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="istenenEleman, i, j, k, l, temp" type="Integer" array="False" size=""/>
<output expression=""Lütfen tersten hesaplanmasını istediğiniz sayı adedini giriniz."" newline="True"/>
<input variable="istenenEleman"/>
<declare name="elemanlar" type="Integer" array="True" size="istenenEleman"/>
<for variable="i" start="0" end="istenenEleman - 1" direction="inc" step="1">
<output expression=""Lütfen " & i + 1 & "." & " Elemanı giriniz: "" newline="True"/>
<input variable="elemanlar[i]"/>
</for>
<for variable="j" start="0" end="istenenEleman - 1" direction="inc" step="1">
<output expression=""Girmiş Olduğunuz " & j + 1 & "." & "Sayı: " & elemanlar[j]" newline="True"/>
</for>
<for variable="k" start="0" end="istenenEleman / 2 - 1" direction="inc" step="1">
<assign variable="temp" expression="elemanlar[k]"/>
<assign variable="elemanlar[k]" expression="elemanlar[istenenEleman - k - 1]"/>
<assign variable="elemanlar[istenenEleman - k - 1]" expression="temp"/>
</for>
<for variable="l" start="0" end="istenenEleman - 1" direction="inc" step="1">
<output expression="l + 1 & "." & " Sayı: " & elemanlar[l]" newline="True"/>
</for>
</body>
</function>
</flowgorithm>