more if examples
This commit is contained in:
parent
2f4f401018
commit
2ff57daf39
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 New Issue
Block a user