Skip to content

Commit f1d688b

Browse files
committed
Fix: Unnecessary parts of code and use proper defined structure
1 parent 763d447 commit f1d688b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Playground/avijitj14/BMICalculator-Cpp-avijitj14/C_Cpp.ConfigurationSelect

Whitespace-only changes.

Playground/avijitj14/BMICalculator-Cpp-avijitj14/main.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ int main()
3131
cout << "Enter height in metres:" << endl;
3232
cin >> height;
3333

34-
//Calculate BMI using formula
35-
bmi = weight/(height * height);
36-
37-
//Truncate to decimal places
38-
cout << fixed << setprecision(2);
39-
4034
//Determine BMI category
4135
determineBMI(height, weight);
4236

0 commit comments

Comments
 (0)