more if examples
This commit is contained in:
parent
5ee4d38ff0
commit
6dd7187c35
2 changed files with 18 additions and 0 deletions
4
if-example-positive.py
Normal file
4
if-example-positive.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
a = int(input('a:'))
|
||||
if a > 0:
|
||||
print('pozitif')
|
||||
print('son')
|
14
if-example-three-numbers.py
Normal file
14
if-example-three-numbers.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
a = int(input("a:"))
|
||||
b = int(input("b:"))
|
||||
c = int(input("c:"))
|
||||
|
||||
if a > b:
|
||||
if a > c:
|
||||
print(a)
|
||||
else:
|
||||
print(c)
|
||||
else:
|
||||
if b > c:
|
||||
print(b)
|
||||
else:
|
||||
print(c)
|
Loading…
Reference in a new issue