//for loop factorial value
#include <stdio.h>
main()
{
int n,f,d;
f=1;
printf("
Enter a number: ");
scanf("%d",&n);
for(d=n;d>1;d--)
{
printf("%d*",d);
f=f*d;
}
printf("%d",d);
printf("
The factorial value: %d",f);
}