title: C++ error 'else' without a previous if
body: <p>I cant seem to see my error here. 
  relatively new to C++.
   Please help.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      float salary,taxrate,incometax;
  
      cout &lt;&lt; "Enter your Annual Salary" &lt;&lt; endl;
      cin &gt;&gt; salary;
  
      if (salary&gt;= 70000)
        taxrate = 0.4;
        incometax= taxrate*salary;
      else if
        taxrate= 0.3;
        incometax= taxrate*salary;
  
  cout &lt;&lt; "The income tax due is: R"&lt;&lt; incometax;
  </code></pre>
  
  <p>I am looking through my code and cannot find the error?</p>