forked from fenyx-it-academy/Class4-PythonModule-Week1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathodev3.py
More file actions
21 lines (17 loc) · 687 Bytes
/
odev3.py
File metadata and controls
21 lines (17 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
while True:
print('Kilo ve boyunuzu ornekte oldugu gibi girin. (Ornek:Kg: 75, Boy:1.80) Cikmak icin "q" ya basin.')
user_kg=input("Kg: ")
if user_kg=="q":
print('Programdan cikiliyor...')
break
else:
user_meter=input("Boy: ")
user_kg=int(user_kg)
user_meter=float(user_meter)
islem=(user_kg)/float(user_meter**2)
if islem<=25:
print(f'Vucut kitle endeksiniz:{int(islem)} (NORMAL)')
elif islem>=26 and islem<=30:
print(f'Vucut kitle endeksiniz:{int(islem)} (FAZLA KILOLU)')
elif islem>=31 and islem<=40:
print(f'Vucut kitle endeksiniz:{int(islem)} (OBEZ)')