title: Errors in an if statement
body: <p>I try running this code but the problem is -since I'm a beginner -  I don't know how to place several conditions in one if statement and why the if line and else linke have errors. Can you please show me where I went wrong ? Thanks </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main(){
  
  double AVG;
  cout&lt;&lt; "please write in average\n";
  cin&gt;&gt; AVG;
  if ((AVG &gt;60) &amp;&amp; (AVG &gt;=90))----------expected identifier
      cout&lt;&lt; "pass with grade of " &lt;&lt; AVG ;
      cout &lt;&lt; "\n" &lt;&lt; "A star!\n";
  else----------------------------------expected expression
      cout &lt;&lt; "fail with grade of " &lt;&lt; AVG &lt;&lt; "\n";
  cout&lt;&lt; "good luck with your smester !\n";
  
  }
  </code></pre>