Advertisement
lokhun

Untitled

Jan 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int weight;
  8.     int height;
  9.     int BMI;
  10.  
  11.     cout << "Enter your weight in pounds: ";
  12.     cin >> weight;
  13.  
  14.     cout << "Enter your height in inches: ";
  15.     cin >> height;
  16.  
  17.     BMI = (weight *703) / (height * height);
  18.  
  19.     cout << "Your BMI values is: " << BMI << endl;
  20.     cout << "\nBMI VALUES" << endl;
  21.     cout << "Underweight: less than 18.5\n";
  22.     cout << "Normal:      between 18.5 and 24.9\n";
  23.     cout << "Overweight:  between 25 and 29.9\n";
  24.     cout << "Obese:       30 or greater\n";
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement