title: Percentage in-between variables
body: <p>I have an assignment to write a code that prints out all prime numbers between 1-100. I am looking at different programs to get an idea on what to do and keep running into i.e. "if (x%c == 0)".</p>
  
  <p>Now I can't find out what the "x%c" means. I've looked around a lot and can't find any good answers anywhere. Possibly because of searching for the wrong thing. What exactly does that do in the following code?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main()
  {
     int n, i = 3, count, c;
  
     printf("Enter the number of prime numbers required\n");
     scanf("%d",&amp;n);
  
     if ( n &gt;= 1 )
     {
        printf("First %d prime numbers are :\n",n);
        printf("2\n");
     }
  
     for ( count = 2 ; count &lt;= n ;  )
     {
        for ( c = 2 ; c &lt;= i - 1 ; c++ )
        {
           if ( i%c == 0 )
              break;
        }
        if ( c == i )
        {
           printf("%d\n",i);
           count++;
        }
        i++;
     }
  
     return 0;
  }
  </code></pre>