Mode Gelap

Recent in Fashion

Best Seller Books

Body Mass Index

  • Problem Description

    Write a program that computes the body mass index (BMI) of an individual. 

    Your program should begin by reading a height and weight from the user. If you read the height in meters and the weight in kilograms then body mass index is computed using this slightly simpler formula:

    BMI = weight / height *height

    Use round function in the final output value
  • CODING ARENA
  • a=float(input())
    b=int(input())
    c=b/(a*a)
    print("The BMI IS",round(c,2))
  • Test Case 1

    Input (stdin)
    1.69

    64

    Expected Output
    The BMI IS 22.41
  • Test Case 2

    Input (stdin)
    1.72

    71

    Expected Output
    The BMI IS 24.0

Subscribe Our Newsletter

avatar
"By speaking behind my back, it means that you respect my existence enough not to act in front of my face."

Related Posts

0 Comment

Post a Comment

Article Top Ads

Parallax Ads

Article Center Ads

Article Bottom Ads