//
#include <iostream>

using namespace std;


int main() {

int age;
int weight;
int height;

cout << "Enter your age." <<endl;
cin >> age;

cout << "Enter your weight (in inches)." <<endl;
cin >> weight;

cout << "Enter your weight (in pounds)." <<endl;
cin >> height;


if ((age >= 18)&&(age <= 35))&&((weight >= 150)&&(weight <= 235))&&((height >= 66)&&(height <= 78));
{
cout << "QUALIFIED" <<endl;
}
else;
{
cout << "DISQUALIFIED" <<endl;
}
return 0;
}

please help me! i get these errors..

army.cc: In function `int main()':
army.cc:25: error: expected identifier before '(' token
army.cc:25: error: expected `;' before '(' token
army.cc:29: error: expected primary-expression before "else"
army.cc:29: error: expected `;' before "else"

lines 23 and 28: remove those damned semicolons at the end of the lines.

lines 23 and 28

I think Ancient Dragon meant to say lines 23 and 27. :)
Don't put semicolons after if and else.

commented: Yes I did :) +36

thanks!

Please mark the thread as solved if you don't need any further help, so people can pass over it instead of wasting there time with an already answered question.
Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.