Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main()
- {
- int bmi = 25;
- if (bmi < 18.5)
- {
- cout << "You are underweight." << endl;
- }
- else if ( bmi >= 18.5 && bmi<= 24.9 )
- {
- cout << " You are normal weight." << endl;
- }
- else if (25 < bmi < 29.9)
- {
- cout << " You are overweight." << endl;
- }
- else if (bmi > 30)
- {
- cout << " You are obese." << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement