Problem 147309 · easy · Level 01 Prerequisites & Setup

Body Mass Index

input · arithmetic · exponent · rounding · f-strings

Read a person's weight in kilograms and height in metres (both decimals). Body mass index is weight divided by the square of height. Print BMI: <value> with exactly one decimal place.

Examples

Input:
70
1.75
Output:
BMI: 22.9

Constraints

  • 1 <= weight <= 500, 0.5 <= height <= 3

Goals

  • Use the ** operator (or repeated multiplication) for squaring
  • Print a result rounded to one decimal place
Starting Python…