For loop troubles.

I'm having issues and for the life of me I cannot figure out what I'm doing wrong.

I debugged this and when it gets to the for loop the variable bb3 is set to bb2 on the first pass through, any help would be greatly appreciated.

1
2
3
4
5
6
7
  cin >> value1 >> value2;
  int bb2 = ((value2 - value1 + 1) * 3);

  for (int bb3 = 0; bb3 < bb2; bb3++);
  {
     cout << '-';
  }
for (int bb3 = 0; bb3 < bb2; bb3++); remove the last semicolon
doh, thanks a ton.
Last edited on
Topic archived. No new replies allowed.