Factorial

Program to find the factorial of a number :

ALGORITHM:

    1. [INITIALISE] set fact=1
    2. Input the no., say , num
    3. for i=num to i=1
      set fact=fact*i
      update i=i-1;
    4. PRINT the value of factorial as fact

C SOURCE CODE:

 

Leave a Reply

Your email address will not be published. Required fields are marked *