more if examples

This commit is contained in:
Mert Gör 🇹🇷 2023-05-20 06:45:05 +03:00
parent 2f4f401018
commit 2ff57daf39
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 15 additions and 0 deletions

7
elif.py Normal file
View 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
View 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")