-
Notifications
You must be signed in to change notification settings - Fork 0
/
16-Girilen Sayısal Değerlerin Negatif, Pozitif ve Sıfır Sayısını Hesaplayan Program.fprg
40 lines (40 loc) · 2.2 KB
/
16-Girilen Sayısal Değerlerin Negatif, Pozitif ve Sıfır Sayısını Hesaplayan 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
38
39
40
<?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-17 09:50:36 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xNzswOTo0MTozNyDDllM7MjgwNg=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xNzswOTo1MDozNiDDllM7MTsyOTEz"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="sayac, negatifSayi, pozitifSayi, sifirSayi, sayi" type="Integer" array="False" size=""/>
<assign variable="negatifSayi" expression="0"/>
<assign variable="pozitifSayi" expression="0"/>
<assign variable="sifirSayi" expression="0"/>
<for variable="sayac" start="1" end="10" direction="inc" step="1">
<output expression=""Lütfen işaretini hesaplamak istedğiniz " & sayac & "." & " sayıyı giriniz."" newline="True"/>
<input variable="sayi"/>
<if expression="sayi > 0">
<then>
<assign variable="pozitifSayi" expression="pozitifSayi + 1"/>
</then>
<else>
<if expression="sayi == 0">
<then>
<assign variable="sifirSayi" expression="sifirSayi + 1"/>
</then>
<else>
<assign variable="negatifSayi" expression="negatifSayi + 1"/>
</else>
</if>
</else>
</if>
</for>
<output expression=""Girmiş olduğunuz sayısal değerlerden " & negatifSayi & " tanesi negatif, " & pozitifSayi & " tanesi pozitif, " & sifirSayi & " tanesi de sıfır sayısıdır."" newline="True"/>
</body>
</function>
</flowgorithm>