print("Welcome to BMI calculator") weight = float(input("Please enter your weight in kg:\n")) height = float(input("Please enter your height in m:\n")) BMI = weight / height ** 2 new_BMI = int(BMI) print(f"Your BMI is {new_BMI}")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter