BMI program in C++