help im getting an error using code blocks

Hi , need help here I am still new to programming. I am answering a question that requires me to validate 2 variables height and weight using a while loop , which will be repeated until height is more than 1.8 and weight less than 100 . My code is compiling then when i enter values it just gets stuck . There is no error message but green highlights on #include <iostream> and int main () . so i cant find what is wrong with my declarations .

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 #include <iostream>
using namespace std;
int main()
{
    float height;
    int weight;

    cout <<"Please key in the height followed by the weight:";
    cin >> height >> weight ;

    while (height <= 1.8 || weight >= 100);
    {
        cout <<"Wrong: Height should be more than 1.8 ";
        cout <<"and weight should be less than 100";
        cout <<"Enter height:";
        cin >> height;
        cout <<"Enter weight:";
        cin >> weight;

    }
    cout <<"Height:" << height << "weight:" << weight << endl;

    return 0;
}
You've got a semicolon `;' at the end of line 11
oh ok thank you , now have to test my values to see if it is doing what its supposed to
Topic archived. No new replies allowed.