Sunday 1 November 2015

write a program to find factorial of given number in c language.

write a program to find factorial of given number in c language. #include<stdio.h> #include<conio.h> Void main( ) ... thumbnail 1 summary

write a program to find factorial of given number in c language.


#include<stdio.h>
#include<conio.h>
Void main( )
{
Int c,n,fact=1;
Printf(“enter a number to calculate it’s factorial\n”);
For(c=1;c<=n;c++)
{
            Fact=fact*c;
}
Printf(“factorial of %d=%d\n”,n,fact);
}

No comments

Post a Comment