-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGirilen Sayılar Kaç Tane ve Toplamı Kaç.fprg
50 lines (50 loc) · 3.27 KB
/
Girilen Sayılar Kaç Tane ve Toplamı Kaç.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="2.11">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="LENOVO"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-01-04 09:30:09 ÖS"/>
<attribute name="created" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTA0OzA5OjIwOjIxIMOWUzsyOTkx"/>
<attribute name="edited" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTA0OzA5OjIwOjI0IMOWUzsxO0xFTk9WTztERVNLVE9QLVNEUFRQUTg7MjAyMi0wMS0wNDswOTowOToxMyDDllM7R2lyaWxlbiBTYXnEsWxhcmRhbiBLYcOnIFRhbmVzaW5pbiBOZWdhdGlmIC0gUG96aXRpZiBPbGR1xJ91bnUgWWF6bWFrLmZwcmc7MTMzODI="/>
<attribute name="edited" value="TEVOT1ZPO0RFU0tUT1AtU0RQVFBRODsyMDIyLTAxLTA0OzA5OjMwOjA5IMOWUzsyOzMxMDc="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="sayi, sayac, pozitifSayi, negatifSayi, sıfırSayi, pozitifSayiTop, sıfırSayiTop, negatifSayiTop" type="Integer" array="False" size=""/>
<assign variable="pozitifSayi" expression="0"/>
<assign variable="negatifSayi" expression="0"/>
<assign variable="sıfırSayi" expression="0"/>
<assign variable="pozitifSayiTop" expression="0"/>
<assign variable="negatifSayiTop" expression="0"/>
<assign variable="sıfırSayiTop" expression="0"/>
<output expression=""Girmek İstediğiniz 6 Tane Sayıyı Giriniz"" newline="True"/>
<for variable="sayac" start="1" end="6" direction="inc" step="1">
<output expression="sayac & ". Sayıyı Giriniz!"" newline="True"/>
<input variable="sayi"/>
<if expression="sayi > 0">
<then>
<assign variable="pozitifSayi" expression="pozitifSayi + 1"/>
<assign variable="pozitifSayiTop" expression="pozitifSayiTop + sayi"/>
</then>
<else>
<if expression="sayi == 0">
<then>
<assign variable="sıfırSayi" expression="sıfırSayi + 1"/>
<assign variable="sıfırSayiTop" expression="sıfırSayiTop + sayi"/>
</then>
<else>
<assign variable="negatifSayi" expression="negatifSayi + 1"/>
<assign variable="negatifSayiTop" expression="negatifSayiTop + sayi"/>
</else>
</if>
</else>
</if>
</for>
<output expression="pozitifSayi & " tane Pozitif Sayı var ve toplamları = " & pozitifSayiTop" newline="True"/>
<output expression="negatifSayi & " tane Negatif Sayı var ve toplamları = " & negatifSayiTop" newline="True"/>
<output expression="sıfırSayi & " tane Sıfır var ve toplamları = " & sıfırSayiTop" newline="True"/>
</body>
</function>
</flowgorithm>