Having trouble stopping my do,while loop. It asks the right questions, and I thought I had the right qualifier, while blah>0, do such and such, but it continues in the loop and keeps asking the questions
Here's what i've got:

  cout<<"Now let's subtract the door and window area."<<"How many doors do you have?"<<endl;
  cin>> doors;
  cout<<"How many windows do you have?";
  cin>>windows;
  while (doors > 0)
  {
        cout<< "Please enter the height of door in inches"<<endl;
        cin>>d_height;
        cout<<"Please enter the width of the door in inches"<<endl;
        cin >>d_width;
                    }
        do 
        {
              (d_height*d_width)/144;
        }
                    while( doors >0, doors--);

{
                     cout<< "Please enter the height of windowin inches"<<endl;
        cin>>w_height;
        cout<<"Please enter the width of the windowin inches"<<endl;
        cin >>w_width;
              }
        do 
        {
              tw_area =(w_height*w_width)/144;
              }              
while (windows>0, windows--);

Any help would be appreciated

Edited 3 Years Ago by mike_2000_17: Fixed formatting

crud, I'm an idiot, I just answered my own problem. I didn't have the doors-- on the first while expression.. just tired, 45 hours of overtime last week and haven't had a day off in five weeks. Thanks

This question has already been answered. Start a new discussion instead.