Program to calculate Factorial of a given number

Output:

You may also like...

4 Responses

  1. Jyant Khosla says:

    void main(){
    int n,s=1;
    printf(“enter the nth value”);
    scanf(“%d”,&n);
    while(n>0)
    {
    s=s*n;
    n–;
    }
    printf(“the answer is %d”,s);
    getch();
    }

  2. shubha says:

    i get ans fr factorial oly up to 10

  1. March 1, 2014

    […] Progarm to calculate Factorial of a given number […]

  2. October 25, 2017

    […] Progarm to calculate Factorial of a given number […]

Leave a Reply

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