https://github.com/code-str8/body-mass-index-calculator
A simple program that takes the user's height and weight and calculates their BMI.
https://github.com/code-str8/body-mass-index-calculator
Last synced: 4 months ago
JSON representation
A simple program that takes the user's height and weight and calculates their BMI.
- Host: GitHub
- URL: https://github.com/code-str8/body-mass-index-calculator
- Owner: Code-str8
- License: mit
- Created: 2023-10-26T22:33:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-26T23:37:40.000Z (over 2 years ago)
- Last Synced: 2025-02-06T10:29:37.630Z (about 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Body-Mass-Index-Calculator
A simple program that takes the user's height and weight and calculates their BMI.
## Description
Here's an example of how the code would work:
The user enters their height (e.g., 1.80) and weight (e.g., 70).
The program converts the entered height and weight to the float data type.
The program calls the calculate_bmi function with the height and weight as arguments.
The program calculates the BMI using the formula weight / (height ** 2).
The program prints out the BMI value.