title: error: expected expression before ‘float’
body: <p>I would like to find all the primes within 100. Here is my codes.</p>
  
  <pre><code>// Find all the prime number within 100.
  #include&lt;stdio.h&gt;
  #include&lt;math.h&gt;
  #include&lt;stdbool.h&gt;
  int main() {
     int i,n;
     int j = 0;
     for ( n = 2; n &lt;= 100; ++n) {
        bool isPrime = true;
        for (i = 2; i &lt;= sqrt(float(n)); ++i) {
           if(n % i == 0) {
              isPrime = false;  
              break;
           }
        }
        if(isPrime) {
           ++j;
           printf("%d is a prime number\n",n);
        }
    }
    printf("The total number of prime number within 100 is %d\n",j);
    return 0;
  </code></pre>
  
  <p>}</p>
  
  <p>When compile it, there is one error.</p>
  
  <pre><code>prime.c:14:8: error: expected expression before ‘float’
  m = float(n);
      ^
  </code></pre>
  
  <p>Could anyone help solve this problem？ Thanks.</p>