While & If loop expected error
<p>I need to write a program that would read in numbers from the keyboard, compute the average of the numbers, and display it. The sequence of numbers are to be terminated with a zero.</p>

<p>Here is my code: </p>

<pre><code>#include &lt;iostream&gt;
#include &lt;iomanip&gt;
#include &lt;cmath&gt;
using namespace std;
int main()
{
    int count;
    double number, sum, average;

    count = 0;
    sum = 0;
    average = 0;

    cout &lt;&lt; "\nEnter Number (0 to terminate): ";
    cin &gt;&gt; number;

    while(number! = 0.0)
    {
        sum = sum + number;
        count = count + 1;
        cout &lt;&lt; "\nEnter Number: ";
        cin &gt;&gt; number;
    }
    if(count! = 0.0);
    {
        average = sum/count;
    }

    cout &lt;&lt; "\nThe average of the" &lt;&lt; count &lt;&lt; "number is" &lt;&lt; average &lt;&lt; endl;
    return 0;
}
</code></pre>

<p>However, I am getting two errors:</p>

<blockquote>
  <p>expected ')'</p>
</blockquote>

<p>and</p>

<blockquote>
  <p>if statement has empty body</p>
</blockquote>