title: Howto compute the factorial of x
body: <p>how to get the value of an integer <code>x</code>, indicated by <code>x!</code>, it is the product of the numbers 1 to x.</p>
  
  <p>Example: <code>5! 1x2x3x4x5 = 120.</code></p>
  
  <pre><code>int a , b = 1, c = 1, d = 1; 
  printf("geheel getal x = ");
  scanf("%d", &amp;a);
  printf("%d! = ", a);
  for(b = 1; b &lt;= a; b++)
  {
       printf("%d x ", c);
       c++;
       d = d*a;
  }
  printf(" = %d", d);
  </code></pre>