Problem Description
Write a python program to find someone will have a risk of heart Disease using BMI and age .
AGE BMI RISK
<45 <22 Low
>45 <22 Medium
>=45 >=22 HighCODING ARENA
a=int(input())
b=int(input())
if(a<45 and b<22):
print("Low")
elif(a>45 and b<22):
print("Medium")
elif(a>=45 and b>=22):
print("High")
else:
print("shiva")
Test Case 1
Input (stdin)44 21
Expected OutputLow
Test Case 2
Input (stdin)46 21
Expected OutputMedium
I appreciate you. Especially your content,a lot of knowleged.You also read bmi calculator
ReplyDelete