title: expected expression in C++?
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  void num7()
  {
      int numRows;
      cin &gt;&gt; numRows;
      for (int x = 0; x &lt; numRows/2; x++) {
          for (int y = 0; y &lt;= x; y++) {
              cout &lt;&lt; "*";
          }
          cout &lt;&lt; "\n";
      }
      float numRowsfloat = numRows;
      double cos = numRowsfloat / 2;
      int tan = numRowsfloat / 2;
      double sin = tan;
      if (cos == sin)
          cout &lt;&lt; "\n";
          for (int x = 0; x &lt; numRows/2; x++) {
              for (int y = numRows/2; y &gt;0; y--) {
                  cout &lt;&lt; "*";
              }
          }
      else
          for (int x = 0; x &lt; numRows/2+1; x++) {
              for (int y = x; y &gt;0; y--) {
                  cout &lt;&lt; "*";
              }
              cout &lt;&lt; "\n";
          }
  
  }
  </code></pre>
  
  <p>In the else column, it says expected expression.
  This is trying to make a triangular shape. like</p>
  
  <pre><code>*
  **
  ***
  ***
  **
  *
  </code></pre>
  
  <p>for inputed 6
  or</p>
  
  <pre><code>*
  **
  ***
  **
  * 
  </code></pre>
  
  <p>for inputed 5</p>