python-CSD-kursu/kosul.operatoru.py

5 lines
123 B
Python
Raw Normal View History

2023-05-21 14:25:43 +00:00
n = int(input('Bir değer giriniz:'))
result = 100 if n % 2 == 0 else 200 # result = n % 2 == 0 ? 100 : 200
print(result)