Bumpkins of Bumpus problem

i am sure that everyone is familiar with this question
I just seem to be having trouble with my loops not functioning properly

I am also using a boolean setup with for loops and if else if statements

this is just the for loop parts of the code

for (int count = 1; count <= number; count++)
{
cout << "Enter a name of a Bumpkin, the number of doors,";
cout << "the height of the Bumpkin, and the height unit (i, f, y, c, m) : ";
cin >> name;

cin >> n;

cin >> b;

cin >> hiunit;

cout << name << endl;

}
for (int i = 1; i <= n; i++)
{
cout << "Enter height of the door" << i << " with the unit of measurement: \n";
cin >> d >> hiunit;

if (d > b * 1.25)

cout <<"Doorway :"<< i << "Stilts\n";

if anyone wants me to post the whole code dont hesitate
Topic archived. No new replies allowed.