Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FORM CODE LINK : https://pastebin.com/YUNtpSsw
- #Get variable via input and integer
- weight = int(input('BERAT BADAN : '))
- height = float(input('TINGGI BADAN :'))
- #Mencari Nilai w ÷ h^2
- w_h = weight / (height**2)
- #Getting Output
- print('Nilai BM : %.2f'%(w_h))
- if w_h < 18.5:
- u = 'KURUS'
- elif w_h >= 18.5 and w_h <= 24.9:
- u = 'NORMAL'
- elif w_h >= 25.0 and w_h < 29.9:
- u = 'GEMUK'
- else: u = 'OBESITAS BERLEBIH'
- print('DALAM KONDISI',u)
Advertisement
Add Comment
Please, Sign In to add comment