Starting Code from 1 instead of 0?
<pre><code>#include&lt;iostream&gt;

using namespace std;
int main()

int quantity = 0;
int a = 0;
int b = 0;
int x = 0;
int y = 0;
int z;
double region[5][6];
int shipping = 20.00;
region[0][0] = 0;


for (x=0;x&lt;5;x++) {

    for (y=0; y&lt;6; y++) {
        z=x;
       if(y == 0)
       {region[x][y] = y + 1 + z;}
       else if(y == 1)
       {region[x][y] =  region[x][y-1] * 2;}
           else if(y == 2)
           {region[x][y] = region[x][y-1]  + .50;}
               else if(y == 3)
                   {region[x][y] = region[x][y-1] + .50;}
                   else if(y == 4)
                   {region[x][y] = region[x][y-1] + .250;}
                       else 
                       {region[x][y] = region[x][y-1] + .250;}
    }

}
cout&lt;&lt;"Please input the region"&lt;&lt;endl;
cin&gt;&gt;a;
cout&lt;&lt;"Enter quantity"&lt;&lt;endl;
cin&gt;&gt;quantity;
if (quantity &gt; 6)
{b = 5;}
else
{b = quantity;}

cout&lt;&lt;"The price of shipping comes out to: "&lt;&lt;region[a][b] + shipping&lt;&lt;" Since $20 is added for the shipping cost"&lt;&lt;endl;

return 0 ;
</code></pre>

<p>}</p>

<p>So right now I have to type 0,0 for region and quantity to get the first cell. But since I am starting at region 1 and quantity 1, I was to make the user input 1,1. How will I go about doing this with C++. Thanks!</p>
