more if examples
This commit is contained in:
parent
2f4f401018
commit
2ff57daf39
2 changed files with 15 additions and 0 deletions
7
elif.py
Normal file
7
elif.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
a = int(input("Değer giriniz:"))
|
||||||
|
if a > 0:
|
||||||
|
print("Pozitif")
|
||||||
|
elif a < 0:
|
||||||
|
print("Negatif")
|
||||||
|
else:
|
||||||
|
print("Sıfır")
|
8
else-if-2.py
Normal file
8
else-if-2.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
a = int(input("Değer giriniz:"))
|
||||||
|
if a > 0:
|
||||||
|
print("Pozitif")
|
||||||
|
else:
|
||||||
|
if a < 0:
|
||||||
|
print("Negatif")
|
||||||
|
else:
|
||||||
|
print("Sıfır")
|
Loading…
Reference in a new issue