c program
my c program for factorial is not giving any value in the output box though it shows no errors
#include<stdio.h>
main()
{
int a,n,t=1;
printf("enter the number\n");
scanf("%d",a);
for(n=1;n<=a;n++)
{
t*=n;
}
printf("the factorial is %d",t);
}