My code is supposed to get the factorial of a passed value. I spoke with my professor and he told me to use int argc, char\* argv[] arguments. It compiles but will loop once and will only return the initial value.

```
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
   int fact = 1;
   if(argc>1)
   { 
        printf("Too many inputs!\n");
        return -1;
   }
   int n = atoi(argv[1]);
   for(int i = 1; i <= n;i++)
   {
       fact *= i; 
   }
   printf("%d\n", fact);
   return 0;
}

```