Okay i've finally figured out this whole nested loop thing , well kind of, for this program I needed to create a nested loop for a lumber yard the base sizes for the wood are 2,4,6,8,10 and the height size is 2,4,6,8,10,12. The formulas and stuff are kind of irrelevent for my question because I have all of that working. My question is WHY in the world is my outer loop stopping at 8 when it is supposed to test until it is <= 12. Here's the code
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
// Heading for the chart
cout << "Lumber Size" <<" "<< "Cross-sectional area" <<
" "<< "Moment of inertia" << " "<< setw(10)<<
"S M \n";
// nested for loop for everything in the chart