Friday, February 1, 2019

BMI

  • 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 High
  • CODING 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 Output
    Low
  • Test Case 2

    Input (stdin)
    46
    
    21
    
    
    Expected Output
    Medium

1 comment:

  1. I appreciate you. Especially your content,a lot of knowleged.You also read bmi calculator

    ReplyDelete