From 011d18248a1533f6945f0200dc5a0209bb351960 Mon Sep 17 00:00:00 2001 From: Piazzese Date: Wed, 10 Jul 2024 10:56:52 +0100 Subject: [PATCH] Script to compute BMI file Script to compute BMI file --- BMI_CP.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 BMI_CP.py diff --git a/BMI_CP.py b/BMI_CP.py new file mode 100644 index 0000000..335dab7 --- /dev/null +++ b/BMI_CP.py @@ -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}') \ No newline at end of file