-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBu Denklemin Sonucuu.fprg
More file actions
31 lines (31 loc) · 1.46 KB
/
Bu Denklemin Sonucuu.fprg
File metadata and controls
31 lines (31 loc) · 1.46 KB
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-29 11:48:02 ÖÖ"/>
<attribute name="created" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTI5OzExOjQwOjI5IMOWw5Y7MzEzMg=="/>
<attribute name="edited" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTI5OzExOjQ4OjAyIMOWw5Y7MjszMjQw"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="x, i, t" type="Integer" array="False" size=""/>
<assign variable="t" expression="0"/>
<output expression=""+1 +2 -3 +4 +5 -6 ..... +x'e kadar olan bu işlemi bulmak için x sayısını giriniz!"" newline="True"/>
<input variable="x"/>
<for variable="i" start="1" end="x" direction="inc" step="1">
<if expression="i % 3 == 0">
<then>
<assign variable="t" expression="t - i"/>
</then>
<else>
<assign variable="t" expression="t + i"/>
</else>
</if>
</for>
<output expression=""İşlemin Sonucu = " & t" newline="True"/>
</body>
</function>
</flowgorithm>