title: For loop is running only once
body: <pre><code>int input;
  int factorial;
  int half;
  
  printf("Enter the number you wish to calculate: ");
  scanf("%d", &amp;input);    
  
  for(x=1; x&lt;input; x++);
  {
      half = input - 1;
      factorial = input * half;
  }
  
  printf("%d\n", factorial);
  
  return 0;
  </code></pre>
  
  <p>It's running once, giving me the input number * (input number - 1), exam, input is 5 its giving out 20. What am I doing wrong that is preventing it from continuing running?</p>