I am having more problems with the if else statement.. it does not seem to using the right equations...
#include <iostream>
using namespace std;
int main()
{
//Declare Variables
int height, age;
double weight, bmr;
char gender;
//Input
cout<< "Enter your weight in pounds\n";
cin>> weight;
cout<< "Enter your height in inches\n";
cin>> height;
cout<< "Enter your age in years\n";
cin>> age;
cout<< "Enter m or f\n";
cin>> gender;
Here, there is a period at the end that shouldn't be there, and there are two ()'s: if (gender == 'm') || (gender == 'f');
It should be: if (gender == 'm' || gender == 'f')
And then, you are still mixing double's and int's.
This compiles and runs but it still only gives one solution for both male and female.?
include <iostream>
using namespace std;
int main()
{
//Declare Variables
int height;
int age;
double weight;
double bmr;
char gender;
//Input
cout<< "Enter your weight in pounds\n";
cin>> weight;
cout<< "Enter your height in inches\n";
cin>> height;
cout<< "Enter your age in years\n";
cin>> age;
cout<< "Enter m or f\n";
cin>> gender;