Find Factorial of Any Number in Turbo C
  • int main()
      int c, n, fact = 1;
      printf("Enter a number to calculate it's factorial\n");
      scanf("%d", &n);
      for (c = 1; c <= n; c++)
        fact = fact * c;
      printf("Factorial of %d = %d\n", n, fact);
      return 0;

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week