how can I fix this code : <p>Somethings wrong with this code.I input “gender-m，age-20，tickets-10”
and it gives me 3200.It supposed to be 3500. I have no idea what's wrong with it, can you please help me? iiiiiiiiiiiiiiiiiiii</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{
char gender;
int age, numTix, premium;

cout &lt;&lt; "Enter your gender: ";
cin &gt;&gt; gender;

cout &lt;&lt; "Enter your age: ";
cin &gt;&gt; age;

cout &lt;&lt; "Tickets you have gotten: ";
cin &gt;&gt; numTix;

if (gender == 'M')
{
    if (age &lt; 21)
    {
        premium = 1500 + 200 * numTix;
    }
    else if (age &gt;= 21 &amp;&amp; age &lt; 30)
    {
        premium = 1200 + 100 * numTix;
    }
    else
    {
        premium = 1000 + 100 * numTix;
    }
}
else
{
    if (age &lt; 21)
    {
        premium = 1200 + 200 * numTix;
    }
    else
    {
        premium = 1000 + 100 * numTix;
    }
    cout &lt;&lt; "Your premium is $" &lt;&lt; premium &lt;&lt; endl;
}
    system("pause");

    return 0;
}
</code></pre>
