Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions BMI_CP.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 10 10:46:06 2024

@author: PiazzeseC
"""

import math

# Input for the weight
weight = input('Please enter your weight in Kg ')

# Input for the height
height = input('Please enter your height in m ')


#Calculate BMI
BMI = round(float(weight)/(float(height)*float(height)), 1)

print(f'Your BMI is {BMI}')