#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,f=1;
puts("Enter the number");
scanf("%d",&n);
for(i=1;i<=n;i++)
f=f*i;
printf("Factorial of %d is %d",n,f);
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,f=1;
puts("Enter the number");
scanf("%d",&n);
for(i=1;i<=n;i++)
f=f*i;
printf("Factorial of %d is %d",n,f);
}
Comments
Post a Comment