Wednesday, 30 November 2011

Trick to finding the factorial


# include <stdio.h>
main ()
{
      int xisum = 1;
      printf ("Enter value of x:");
      scanf ("d", & x);
      for (= 1; i <xi + +)
              number = number * i;
      printf ("The factorial:% d \ n", sum);
}

No comments:

Post a Comment